diff options
Diffstat (limited to 'ext/divx')
-rw-r--r-- | ext/divx/gstdivxdec.c | 8 | ||||
-rw-r--r-- | ext/divx/gstdivxenc.c | 8 |
2 files changed, 4 insertions, 12 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); diff --git a/ext/divx/gstdivxenc.c b/ext/divx/gstdivxenc.c index 6fb449c9..ab970ba7 100644 --- a/ext/divx/gstdivxenc.c +++ b/ext/divx/gstdivxenc.c @@ -198,18 +198,14 @@ static void gst_divxenc_init (GstDivxEnc * divxenc) { /* create the sink pad */ - divxenc->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_template), - "sink"); + divxenc->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (divxenc), divxenc->sinkpad); gst_pad_set_chain_function (divxenc->sinkpad, gst_divxenc_chain); gst_pad_set_setcaps_function (divxenc->sinkpad, gst_divxenc_setcaps); /* create the src pad */ - divxenc->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_template), - "src"); + divxenc->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (divxenc->srcpad); gst_element_add_pad (GST_ELEMENT (divxenc), divxenc->srcpad); |