mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtpjitterbuffer: stop the timer thread
The timeout code could release the lock so we need to check if we are allowed to wait for the clock some more.
This commit is contained in:
parent
cba4e6a707
commit
6f4deab298
1 changed files with 4 additions and 0 deletions
|
@ -2473,6 +2473,10 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
|
|||
GstClockReturn ret;
|
||||
GstClockTimeDiff clock_jitter;
|
||||
|
||||
/* check here, do_timeout could have released the lock */
|
||||
if (!priv->timer_running)
|
||||
break;
|
||||
|
||||
GST_OBJECT_LOCK (jitterbuffer);
|
||||
clock = GST_ELEMENT_CLOCK (jitterbuffer);
|
||||
if (!clock) {
|
||||
|
|
Loading…
Reference in a new issue