[0.11] gst-plugins-good: rtpjitterbuffer: Don' t leak caps event when not pushing

Olivier Crête tester at kemper.freedesktop.org
Sat Jan 28 08:56:41 PST 2012


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

Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Fri Jan 27 12:14:49 2012 +0100

rtpjitterbuffer: Don't leak caps event when not pushing

---

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

diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c
index d3bfe68..2bce56d 100644
--- a/gst/rtpmanager/gstrtpjitterbuffer.c
+++ b/gst/rtpmanager/gstrtpjitterbuffer.c
@@ -1053,6 +1053,8 @@ gst_rtp_jitter_buffer_sink_event (GstPad * pad, GstObject * parent,
       /* set same caps on srcpad on success */
       if (ret)
         ret = gst_pad_push_event (priv->srcpad, event);
+      else
+        gst_event_unref (event);
       break;
     }
     case GST_EVENT_SEGMENT:



More information about the gstreamer-commits mailing list