appsrc: fix deadlock setting pipeline in NULL state with block=true
[platform/upstream/gstreamer.git] / gst-libs / gst / app / gstappsrc.c
index 95766d3..e8aa4f0 100644 (file)
@@ -746,6 +746,7 @@ gst_app_src_stop (GstBaseSrc * bsrc)
   priv->flushing = TRUE;
   priv->started = FALSE;
   gst_app_src_flush_queued (appsrc);
+  g_cond_broadcast (&priv->cond);
   g_mutex_unlock (&priv->mutex);
 
   return TRUE;