[totem] Only set the uri when the playbin is in READY state



commit d0371fbda9523988bb7720538ffcfb9254e9a339
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sun Jan 17 15:44:23 2010 +0000

    Only set the uri when the playbin is in READY state
    
    Playbin must be in either the NULL or READY state before the uri
    property can be set otherwise the new value won't be applied properly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=607225

 src/backend/bacon-video-widget-gst-0.10.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 13739d2..205fc1d 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -3626,8 +3626,6 @@ bacon_video_widget_open (BaconVideoWidget * bvw,
     setup_vis (bvw);
   }
 
-  g_object_set (bvw->priv->play, "uri", bvw->priv->mrl,
-                "suburi", subtitle_uri, NULL);
   if (bvw->priv->ready_idle_id) {
     g_source_remove (bvw->priv->ready_idle_id);
     bvw->priv->ready_idle_id = 0;
@@ -3636,6 +3634,9 @@ bacon_video_widget_open (BaconVideoWidget * bvw,
   bvw->priv->target_state = GST_STATE_READY;
   gst_element_set_state (bvw->priv->play, GST_STATE_READY);
 
+  g_object_set (bvw->priv->play, "uri", bvw->priv->mrl,
+                "suburi", subtitle_uri, NULL);
+
   bvw->priv->seekable = -1;
   bvw->priv->target_state = GST_STATE_PAUSED;
   bvw_clear_missing_plugins_messages (bvw);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]