[0.11] gst-plugins-ugly: a52dec: plug buffer leak

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Thu Jan 12 04:22:37 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: 8cd2408f099b8e1b584fa5cec12bdf956004aa9f
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=8cd2408f099b8e1b584fa5cec12bdf956004aa9f

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Thu Jan 12 13:20:26 2012 +0100

a52dec: plug buffer leak

---

 ext/a52dec/gsta52dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c
index 25043a5..9771943 100644
--- a/ext/a52dec/gsta52dec.c
+++ b/ext/a52dec/gsta52dec.c
@@ -745,10 +745,10 @@ gst_a52dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
           gst_buffer_copy_region (buf, GST_BUFFER_COPY_ALL, offset,
           size - offset);
       GST_BUFFER_TIMESTAMP (subbuf) = GST_BUFFER_TIMESTAMP (buf);
+      gst_buffer_unref (buf);
       ret = a52dec->base_chain (pad, parent, subbuf);
     }
   } else {
-    gst_buffer_ref (buf);
     ret = a52dec->base_chain (pad, parent, buf);
   }
 



More information about the gstreamer-commits mailing list