[clutter-gst] video-texture: Revert the set_playing() guards



commit 922a74fedc0b3a6eb4d601fb96e799c52ae524f3
Author: Damien Lespiau <damien lespiau intel com>
Date:   Tue Apr 5 18:51:24 2011 +0100

    video-texture: Revert the set_playing() guards
    
    This breaks the looping on EOS.

 clutter-gst/clutter-gst-video-texture.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c
index a5c243e..26aa84e 100644
--- a/clutter-gst/clutter-gst-video-texture.c
+++ b/clutter-gst/clutter-gst-video-texture.c
@@ -629,7 +629,6 @@ set_playing (ClutterGstVideoTexture *video_texture,
              gboolean                playing)
 {
   ClutterGstVideoTexturePrivate *priv = video_texture->priv;
-  GstState target_state;
 
   if (!priv->pipeline)
     return;
@@ -639,17 +638,13 @@ set_playing (ClutterGstVideoTexture *video_texture,
   priv->in_error = FALSE;
   priv->in_eos = FALSE;
 
-  /* Don't do anything if we are not actually changing state */
-  target_state = playing ? GST_STATE_PLAYING : GST_STATE_PAUSED;
-  if (target_state == priv->target_state)
-    return;
-
-  priv->target_state = target_state;
+  priv->target_state = playing ? GST_STATE_PLAYING : GST_STATE_PAUSED;
 
   if (priv->uri)
     {
       priv->in_seek = FALSE;
 
+      g_message ("set to %d", priv->target_state);
       gst_element_set_state (priv->pipeline, priv->target_state);
     }
   else



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