[MOVED FROM BAD 097/134] various: fix pad template ref leaks
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 28 Nov 2011 13:08:27 +0000 (13:08 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 16 Sep 2012 13:28:18 +0000 (15:28 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=662664

ext/vp8/gstvp8dec.c
ext/vp8/gstvp8enc.c

index 1172ac9..57dd6bb 100644 (file)
@@ -160,10 +160,10 @@ gst_vp8_dec_class_init (GstVP8DecClass * klass)
           0, 16, DEFAULT_NOISE_LEVEL,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
-  gst_element_class_add_pad_template (element_class,
-      gst_static_pad_template_get (&gst_vp8_dec_src_template));
-  gst_element_class_add_pad_template (element_class,
-      gst_static_pad_template_get (&gst_vp8_dec_sink_template));
+  gst_element_class_add_static_pad_template (element_class,
+      &gst_vp8_dec_src_template);
+  gst_element_class_add_static_pad_template (element_class,
+      &gst_vp8_dec_sink_template);
 
   gst_element_class_set_details_simple (element_class,
       "On2 VP8 Decoder",
index 7a18328..eb6d61b 100644 (file)
@@ -267,10 +267,10 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass)
   gobject_class->get_property = gst_vp8_enc_get_property;
   gobject_class->finalize = gst_vp8_enc_finalize;
 
-  gst_element_class_add_pad_template (element_class,
-      gst_static_pad_template_get (&gst_vp8_enc_src_template));
-  gst_element_class_add_pad_template (element_class,
-      gst_static_pad_template_get (&gst_vp8_enc_sink_template));
+  gst_element_class_add_static_pad_template (element_class,
+      &gst_vp8_enc_src_template);
+  gst_element_class_add_static_pad_template (element_class,
+      &gst_vp8_enc_sink_template);
 
   gst_element_class_set_details_simple (element_class,
       "On2 VP8 Encoder",