mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
rtpjitterbuffer: Unref clock id when waiting for the clock is interrupted
This commit is contained in:
parent
0c073b2d1d
commit
897c02cace
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue