[0.11] gst-ffmpeg: ffmux: gst_element_class_add_pad_template() takes ownership of the pad template

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 02:50:18 PST 2012


Module: gst-ffmpeg
Branch: 0.11
Commit: 27b5013c9c0be549b65709e9628594f753b5866e
URL:    http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=27b5013c9c0be549b65709e9628594f753b5866e

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Tue Jan 10 11:49:57 2012 +0100

ffmux: gst_element_class_add_pad_template() takes ownership of the pad template

---

 ext/ffmpeg/gstffmpegmux.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
index 025a03c..6b75c97 100644
--- a/ext/ffmpeg/gstffmpegmux.c
+++ b/ext/ffmpeg/gstffmpegmux.c
@@ -272,20 +272,17 @@ gst_ffmpegmux_base_init (gpointer g_class)
   /* pad templates */
   srctempl = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, srccaps);
   gst_element_class_add_pad_template (element_class, srctempl);
-  gst_object_unref (srctempl);
 
   if (audiosinkcaps) {
     audiosinktempl = gst_pad_template_new ("audio_%u",
         GST_PAD_SINK, GST_PAD_REQUEST, audiosinkcaps);
     gst_element_class_add_pad_template (element_class, audiosinktempl);
-    gst_object_unref (audiosinktempl);
   }
 
   if (videosinkcaps) {
     videosinktempl = gst_pad_template_new ("video_%u",
         GST_PAD_SINK, GST_PAD_REQUEST, videosinkcaps);
     gst_element_class_add_pad_template (element_class, videosinktempl);
-    gst_object_unref (videosinktempl);
   }
 
 beach:



More information about the gstreamer-commits mailing list