From 635b44d9292963dda3d5595a156790e7c4ed60f3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 29 Dec 2000 04:36:54 +0000 Subject: [PATCH] Add the pipeline to the thread after autoplugging. Original commit message from CVS: Add the pipeline to the thread after autoplugging. --- gstplay/gstplay.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gstplay/gstplay.c b/gstplay/gstplay.c index 92aa814983..c472b82343 100644 --- a/gstplay/gstplay.c +++ b/gstplay/gstplay.c @@ -142,7 +142,7 @@ gst_play_init (GstPlay *play) gst_pipeline_add_sink (GST_PIPELINE (priv->pipeline), priv->audio_play); gst_pipeline_add_sink (GST_PIPELINE (priv->pipeline), priv->video_show); - gst_bin_add (GST_BIN (priv->thread), priv->pipeline); + //gst_bin_add (GST_BIN (priv->thread), priv->pipeline); play->state = GST_PLAY_STOPPED; play->flags = 0; @@ -259,7 +259,8 @@ gst_play_set_uri (GstPlay *play, priv->uri = g_strdup (uri); - priv->src = gst_elementfactory_make ("asyncdisksrc", "disk_src"); + priv->src = gst_elementfactory_make ("disksrc", "disk_src"); + //priv->src = gst_elementfactory_make ("asyncdisksrc", "disk_src"); //priv->src = gst_elementfactory_make ("dvdsrc", "disk_src"); g_return_val_if_fail (priv->src != NULL, -1); gtk_object_set (GTK_OBJECT (priv->src),"location",uri,NULL); @@ -280,6 +281,10 @@ gst_play_set_uri (GstPlay *play, play->flags |= GST_PLAY_TYPE_AUDIO; } + GST_FLAG_UNSET (priv->pipeline, GST_BIN_FLAG_MANAGER); + + gst_bin_add (GST_BIN (priv->thread), priv->pipeline); + return GST_PLAY_OK; }