[clutter-gst] player: Finish porting the eos_cb from the old video-texture



commit 5881edf7778e1831606b51846554826354e8f62a
Author: Damien Lespiau <damien lespiau intel com>
Date:   Fri Aug 26 16:46:55 2011 +0100

    player: Finish porting the eos_cb from the old video-texture
    
    The eos_cb was split between VideoTexture and Player at first, but
    then the implementation of Player changed witout and it was possiblet to
    have the eos_cb handle everything. Except that it was not ported.

 clutter-gst/clutter-gst-player.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-player.c b/clutter-gst/clutter-gst-player.c
index 98bc7d2..e08eab6 100644
--- a/clutter-gst/clutter-gst-player.c
+++ b/clutter-gst/clutter-gst-player.c
@@ -855,8 +855,15 @@ bus_message_eos_cb (GstBus           *bus,
 {
   ClutterGstPlayerPrivate *priv = PLAYER_GET_PRIVATE (player);
 
-  gst_element_set_state (priv->pipeline, GST_STATE_READY);
   priv->in_eos = TRUE;
+
+  gst_element_set_state (priv->pipeline, GST_STATE_READY);
+
+  g_signal_emit_by_name (player, "eos");
+  g_object_notify (G_OBJECT (player), "progress");
+
+  priv->is_idle = TRUE;
+  g_object_notify (G_OBJECT (player), "idle");
 }
 
 static void



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