[gst-cvs] gst-plugins-good: avidemux: prevent double unref; gst_avi_demux_parse_avih already unrefs

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Mon Aug 10 05:47:55 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: effa7b46609746987c221e45f8810f190d6ab41d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=effa7b46609746987c221e45f8810f190d6ab41d

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Tue Aug  4 11:35:18 2009 +0200

avidemux: prevent double unref; gst_avi_demux_parse_avih already unrefs

---

 gst/avi/gstavidemux.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index c52ff79..71a1fa2 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -3438,8 +3438,6 @@ invalid_avih:
   {
     GST_ELEMENT_ERROR (avi, STREAM, DEMUX, (NULL),
         ("Invalid AVI header (cannot parse avih at start)"));
-    if (sub)
-      gst_buffer_unref (sub);
     gst_buffer_unref (buf);
     return GST_FLOW_ERROR;
   }





More information about the Gstreamer-commits mailing list