~ubuntu-branches/ubuntu/precise/gst-plugins-bad0.10/precise-proposed

« back to all changes in this revision

Viewing changes to ext/gsm/gstgsmdec.c

Tags: upstream-0.10.5.3
Import upstream version 0.10.5.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
{
140
140
  /* create the sink and src pads */
141
141
  gsmdec->sinkpad =
142
 
      gst_pad_new_from_template (gst_static_pad_template_get
143
 
      (&gsmdec_sink_template), "sink");
 
142
      gst_pad_new_from_static_template (&gsmdec_sink_template, "sink");
144
143
  gst_pad_set_setcaps_function (gsmdec->sinkpad, gst_gsmdec_sink_setcaps);
145
144
  gst_pad_set_event_function (gsmdec->sinkpad, gst_gsmdec_sink_event);
146
145
  gst_pad_set_chain_function (gsmdec->sinkpad, gst_gsmdec_chain);
147
146
  gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->sinkpad);
148
147
 
149
148
  gsmdec->srcpad =
150
 
      gst_pad_new_from_template (gst_static_pad_template_get
151
 
      (&gsmdec_src_template), "src");
 
149
      gst_pad_new_from_static_template (&gsmdec_src_template, "src");
152
150
  gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->srcpad);
153
151
 
154
152
  gsmdec->state = gsm_create ();