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
@ -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…
x
Reference in New Issue
Block a user