From 897c02cace1afe149e384b2b562acb118e1fad2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 17 Apr 2014 17:00:37 +0200 Subject: [PATCH] rtpjitterbuffer: Unref clock id when waiting for the clock is interrupted --- gst/rtpmanager/gstrtpjitterbuffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index f9ca55f71e..0ac77e6ab1 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2931,8 +2931,11 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer) ret = gst_clock_id_wait (id, &clock_jitter); JBUF_LOCK (priv); - if (!priv->timer_running) + if (!priv->timer_running) { + gst_clock_id_unref (id); + priv->clock_id = NULL; break; + } if (ret != GST_CLOCK_UNSCHEDULED) { now = timer_timeout + MAX (clock_jitter, 0);