[0.11] gst-plugins-bad: y4mdec: fix event leak

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 12 16:19:13 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 2b81720a22511f5ba90a1f26d98e12d0d3426321
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=2b81720a22511f5ba90a1f26d98e12d0d3426321

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Thu Jan 12 15:19:01 2012 +0000

y4mdec: fix event leak

---

 gst/y4m/gsty4mdec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gst/y4m/gsty4mdec.c b/gst/y4m/gsty4mdec.c
index b2ebfb7..2163d02 100644
--- a/gst/y4m/gsty4mdec.c
+++ b/gst/y4m/gsty4mdec.c
@@ -591,6 +591,9 @@ gst_y4m_dec_sink_event (GstPad * pad, GstEvent * event)
       }
 
       res = TRUE;
+      /* not sure why it's not forwarded, but let's unref it so it
+         doesn't leak, remove the unref if it gets forwarded again */
+      gst_event_unref (event);
       //res = gst_pad_push_event (y4mdec->srcpad, event);
     }
       break;



More information about the gstreamer-commits mailing list