From c3ccc8307148df3152d7edeeb060da65e93832de Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 4 Jan 2008 18:47:57 +0000 Subject: gst/rtpmanager/gstrtpjitterbuffer.c: Don't unref the popped buffer when we don't have ownership. 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. --- gst/rtpmanager/gstrtpjitterbuffer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gst/rtpmanager') diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 76226229..64acc4ba 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -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; } -- cgit v1.2.1