summaryrefslogtreecommitdiff
path: root/gst/mpegvideoparse/mpegvideoparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/mpegvideoparse/mpegvideoparse.c')
-rw-r--r--gst/mpegvideoparse/mpegvideoparse.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c
index 52a34c10f..c91ed072b 100644
--- a/gst/mpegvideoparse/mpegvideoparse.c
+++ b/gst/mpegvideoparse/mpegvideoparse.c
@@ -127,10 +127,9 @@ gst_mpegvideoparse_base_init (MpegVideoParseClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (element_class, &src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &sink_template);
gst_element_class_set_details_simple (element_class,
"MPEG video elementary stream parser",