[totem/gnome-2-28] Only set the uri when the playbin is in READY state



commit b1697527517e6c789d860460f1776c687ede600a
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

 src/backend/bacon-video-widget-gst-0.10.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 17222bf..e4954f9 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -3322,6 +3322,9 @@ bacon_video_widget_open (BaconVideoWidget * bvw,
     setup_vis (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);
 



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