diff options
Diffstat (limited to 'ext/faac')
-rw-r--r-- | ext/faac/gstfaac.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c index 4291cc82..959e5d1a 100644 --- a/ext/faac/gstfaac.c +++ b/ext/faac/gstfaac.c @@ -251,9 +251,7 @@ gst_faac_init (GstFaac * faac) faac->cache_time = GST_CLOCK_TIME_NONE; faac->cache_duration = 0; - faac->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_template), - "sink"); + faac->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_chain_function (faac->sinkpad, GST_DEBUG_FUNCPTR (gst_faac_chain)); gst_pad_set_setcaps_function (faac->sinkpad, @@ -262,9 +260,7 @@ gst_faac_init (GstFaac * faac) GST_DEBUG_FUNCPTR (gst_faac_sink_event)); gst_element_add_pad (GST_ELEMENT (faac), faac->sinkpad); - faac->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_template), - "src"); + faac->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (faac->srcpad); gst_element_add_pad (GST_ELEMENT (faac), faac->srcpad); |