rtpjitterbuffer: Unref clock id when waiting for the clock is interrupted
This commit is contained in:
parent
0c073b2d1d
commit
897c02cace
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user