gst-ffmpeg: ffmpegdemux: fix caps leak

Vincent Penquerc'h vincent at kemper.freedesktop.org
Thu Jan 12 06:59:18 PST 2012


Module: gst-ffmpeg
Branch: master
Commit: 49e3bc6e35e2fc3846a5f5ba9232bbdae665b1cd
URL:    http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=49e3bc6e35e2fc3846a5f5ba9232bbdae665b1cd

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Thu Jan 12 14:57:48 2012 +0000

ffmpegdemux: fix caps leak

---

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

diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
index 3eb5328..6122a40 100644
--- a/ext/ffmpeg/gstffmpegdemux.c
+++ b/ext/ffmpeg/gstffmpegdemux.c
@@ -1330,6 +1330,7 @@ gst_ffmpegdemux_type_find (GstTypeFind * tf, gpointer priv)
           in_plugin->name, sinkcaps, res);
 
       gst_type_find_suggest (tf, res, sinkcaps);
+      gst_caps_unref (sinkcaps);
     }
   }
 }



More information about the gstreamer-commits mailing list