various: fix pad template leaks
[platform/upstream/gstreamer.git] / gst / flx / gstflxdec.c
index 627aad1..5017684 100644 (file)
@@ -111,10 +111,10 @@ gst_flxdec_base_init (GstFlxDecClass * klass)
       "Codec/Decoder/Video",
       "FLC/FLI/FLX video decoder",
       "Sepp Wijnands <mrrazz@garbage-coderz.net>, Zeeshan Ali <zeenix@gmail.com>");
-  gst_element_class_add_pad_template (gstelement_class,
-      gst_static_pad_template_get (&sink_factory));
-  gst_element_class_add_pad_template (gstelement_class,
-      gst_static_pad_template_get (&src_video_factory));
+  gst_element_class_add_static_pad_template (gstelement_class,
+      &sink_factory);
+  gst_element_class_add_static_pad_template (gstelement_class,
+      &src_video_factory);
 }
 
 static void