diff options
Diffstat (limited to 'ext/amrwb/gstamrwbdec.c')
-rw-r--r-- | ext/amrwb/gstamrwbdec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/amrwb/gstamrwbdec.c b/ext/amrwb/gstamrwbdec.c index 792addd7..57de2c7a 100644 --- a/ext/amrwb/gstamrwbdec.c +++ b/ext/amrwb/gstamrwbdec.c @@ -97,18 +97,14 @@ static void gst_amrwbdec_init (GstAmrwbDec * amrwbdec, GstAmrwbDecClass * klass) { /* create the sink pad */ - amrwbdec->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_template), - "sink"); + amrwbdec->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_setcaps_function (amrwbdec->sinkpad, gst_amrwbdec_setcaps); gst_pad_set_event_function (amrwbdec->sinkpad, gst_amrwbdec_event); gst_pad_set_chain_function (amrwbdec->sinkpad, gst_amrwbdec_chain); gst_element_add_pad (GST_ELEMENT (amrwbdec), amrwbdec->sinkpad); /* create the src pad */ - amrwbdec->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_template), - "src"); + amrwbdec->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (amrwbdec->srcpad); gst_element_add_pad (GST_ELEMENT (amrwbdec), amrwbdec->srcpad); |