Commit 897c02ca authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

rtpjitterbuffer: Unref clock id when waiting for the clock is interrupted

parent 0c073b2d
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment