diff options
Diffstat (limited to 'ext/xvid')
-rw-r--r-- | ext/xvid/gstxvidenc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/xvid/gstxvidenc.c b/ext/xvid/gstxvidenc.c index e2cf4aa4..7b77deb0 100644 --- a/ext/xvid/gstxvidenc.c +++ b/ext/xvid/gstxvidenc.c @@ -475,9 +475,7 @@ gst_xvidenc_init (GstXvidEnc * xvidenc) guint i, num_props; /* create the sink pad */ - xvidenc->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_template), - "sink"); + xvidenc->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (xvidenc), xvidenc->sinkpad); gst_pad_set_chain_function (xvidenc->sinkpad, @@ -488,9 +486,7 @@ gst_xvidenc_init (GstXvidEnc * xvidenc) GST_DEBUG_FUNCPTR (gst_xvidenc_handle_sink_event)); /* create the src pad */ - xvidenc->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_template), - "src"); + xvidenc->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (xvidenc), xvidenc->srcpad); gst_pad_use_fixed_caps (xvidenc->srcpad); |