mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
jitterbuffer: block output in paused or buffering
This commit is contained in:
parent
4fbbc53a49
commit
69c78f72d5
1 changed files with 7 additions and 1 deletions
|
@ -2068,7 +2068,13 @@ gst_rtp_jitter_buffer_loop (GstRtpJitterBuffer * jitterbuffer)
|
|||
while (TRUE) {
|
||||
GST_DEBUG_OBJECT (jitterbuffer, "Peeking item");
|
||||
|
||||
result = handle_next_buffer (jitterbuffer);
|
||||
/* only push buffers when PLAYING and active and not buffering */
|
||||
if (!priv->blocked && priv->active &&
|
||||
!rtp_jitter_buffer_is_buffering (priv->jbuf))
|
||||
result = handle_next_buffer (jitterbuffer);
|
||||
else
|
||||
result = GST_FLOW_WAIT;
|
||||
|
||||
if (result == GST_FLOW_WAIT) {
|
||||
/* now wait for the next event */
|
||||
result = wait_next_timeout (jitterbuffer);
|
||||
|
|
Loading…
Reference in a new issue