mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
rtpjitterbuffer: Check exit condition immediately after JBUF_WAIT
JBUF_WAIT_QUEUE drops the JBUF_LOCK, which means the stop condition for the chain function may have changed (change_state to NULL). Check this immediately after the wait so that we don't delay shutting down.
This commit is contained in:
parent
e66a4b64b3
commit
fd6cd6f545
1 changed files with 2 additions and 2 deletions
|
@ -3078,9 +3078,9 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
||||||
|
|
||||||
update_current_timer (jitterbuffer);
|
update_current_timer (jitterbuffer);
|
||||||
JBUF_WAIT_QUEUE (priv);
|
JBUF_WAIT_QUEUE (priv);
|
||||||
|
if (priv->srcresult != GST_FLOW_OK)
|
||||||
|
goto out_flushing;
|
||||||
}
|
}
|
||||||
if (priv->srcresult != GST_FLOW_OK)
|
|
||||||
goto out_flushing;
|
|
||||||
|
|
||||||
/* let's check if this buffer is too late, we can only accept packets with
|
/* let's check if this buffer is too late, we can only accept packets with
|
||||||
* bigger seqnum than the one we last pushed. */
|
* bigger seqnum than the one we last pushed. */
|
||||||
|
|
Loading…
Reference in a new issue