gst/rtpmanager/gstrtpjitterbuffer.c: Don't unref the popped buffer when we don't...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 4 Jan 2008 18:47:57 +0000 (18:47 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 4 Jan 2008 18:47:57 +0000 (18:47 +0000)
Original commit message from CVS:
* gst/rtpmanager/gstrtpjitterbuffer.c:
(gst_rtp_jitter_buffer_loop):
Don't unref the popped buffer when we don't have ownership.
Fixes #507020.

ChangeLog
gst/rtpmanager/gstrtpjitterbuffer.c

index 3e72c0736fe0013e3d3b38d843d4d3400ca9673c..290cfc37c76c4e7639d5677c44d0c3eb5a676405 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-04  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * gst/rtpmanager/gstrtpjitterbuffer.c:
+       (gst_rtp_jitter_buffer_loop):
+       Don't unref the popped buffer when we don't have ownership.
+       Fixes #507020.
+
 2008-01-03  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
 
        * gst/mpegtsparse/Makefile.am:
index 76226229ed07fbbdba2583af305c367bb6ae6586..64acc4ba036abae4d4f2d12213b02bf4a5d26088 100644 (file)
@@ -971,7 +971,7 @@ static void
 gst_rtp_jitter_buffer_loop (GstRtpJitterBuffer * jitterbuffer)
 {
   GstRtpJitterBufferPrivate *priv;
-  GstBuffer *outbuf = NULL;
+  GstBuffer *outbuf;
   GstFlowReturn result;
   guint16 seqnum;
   GstClockTime timestamp, out_time;
@@ -1152,8 +1152,6 @@ flushing:
   {
     GST_DEBUG_OBJECT (jitterbuffer, "we are flushing");
     gst_pad_pause_task (priv->srcpad);
-    if (outbuf)
-      gst_buffer_unref (outbuf);
     JBUF_UNLOCK (priv);
     return;
   }