jitterbuffer: only signal loop when active
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 27 Jun 2013 14:15:45 +0000 (16:15 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 27 Jun 2013 14:15:45 +0000 (16:15 +0200)
Only signal the loop function when it is active.

gst/rtpmanager/gstrtpjitterbuffer.c

index 4e4bb69..5169bb9 100644 (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