summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-08-26 16:46:55 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-08-26 17:09:55 +0100
commit5881edf7778e1831606b51846554826354e8f62a (patch)
tree09c94f8789f48b5f19d78d74ea20ec8e11ffe63b
parent5b64e6ce0f8e093983112fd723ae3adb638a8925 (diff)
downloadclutter-gst-5881edf7778e1831606b51846554826354e8f62a.tar.gz
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.
-rw-r--r--clutter-gst/clutter-gst-player.c9
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