various: fix pad template leaks
[platform/upstream/gstreamer.git] / gst / rtp / gstrtpmp2tdepay.c
index 4f5e720..609bfba 100644 (file)
@@ -86,10 +86,10 @@ gst_rtp_mp2t_depay_base_init (gpointer klass)
 {
   GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
 
-  gst_element_class_add_pad_template (element_class,
-      gst_static_pad_template_get (&gst_rtp_mp2t_depay_src_template));
-  gst_element_class_add_pad_template (element_class,
-      gst_static_pad_template_get (&gst_rtp_mp2t_depay_sink_template));
+  gst_element_class_add_static_pad_template (element_class,
+      &gst_rtp_mp2t_depay_src_template);
+  gst_element_class_add_static_pad_template (element_class,
+      &gst_rtp_mp2t_depay_sink_template);
 
   gst_element_class_set_details_simple (element_class,
       "RTP MPEG Transport Stream depayloader", "Codec/Depayloader/Network/RTP",