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:
Wim Taymans 2013-09-20 12:25:43 +02:00
parent cba4e6a707
commit 6f4deab298

View file

@ -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) {