summaryrefslogtreecommitdiff
path: root/gstplay/gstplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'gstplay/gstplay.c')
-rw-r--r--gstplay/gstplay.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gstplay/gstplay.c b/gstplay/gstplay.c
index 42071c33f6..22d84cd9cc 100644
--- a/gstplay/gstplay.c
+++ b/gstplay/gstplay.c
@@ -147,6 +147,7 @@ gst_play_init (GstPlay *play)
"sink");
}
else {
+ GST_FLAG_SET (priv->video_element, GST_ELEMENT_THREAD_SUGGESTED);
gst_bin_add (GST_BIN (priv->video_element), colorspace);
gst_element_connect (colorspace, "src", priv->video_show, "sink");
gst_element_add_ghost_pad (priv->video_element,
@@ -178,7 +179,11 @@ gst_play_new ()
static gboolean
gst_play_idle_func (gpointer data)
{
- return gst_bin_iterate (GST_BIN (data));
+ gboolean busy;
+
+ busy = gst_bin_iterate (GST_BIN (data));
+
+ return busy;
}
static void