jitterbuffer: only signal loop when active

Only signal the loop function when it is active.
This commit is contained in:
Wim Taymans 2013-06-27 16:15:45 +02:00
parent 4bd2ffb26e
commit 8969f00661

View file

@ -1393,7 +1393,7 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
goto duplicate;
/* signal addition of new buffer when the _loop is waiting. */
if (priv->waiting)
if (priv->waiting && priv->active)
JBUF_SIGNAL (priv);
/* let's unschedule and unblock any waiting buffers. We only want to do this