diff options
Diffstat (limited to 'ext/divx/gstdivxdec.c')
-rw-r--r-- | ext/divx/gstdivxdec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/divx/gstdivxdec.c b/ext/divx/gstdivxdec.c index dfc8ffd8..1e4460ed 100644 --- a/ext/divx/gstdivxdec.c +++ b/ext/divx/gstdivxdec.c @@ -163,17 +163,13 @@ static void gst_divxdec_init (GstDivxDec * divxdec) { /* create the sink pad */ - divxdec->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_template), - "sink"); + divxdec->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (divxdec), divxdec->sinkpad); gst_pad_set_chain_function (divxdec->sinkpad, gst_divxdec_chain); gst_pad_set_setcaps_function (divxdec->sinkpad, gst_divxdec_connect); /* create the src pad */ - divxdec->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_template), - "src"); + divxdec->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (divxdec), divxdec->srcpad); gst_pad_use_fixed_caps (divxdec->srcpad); |