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



commit 5b64e6ce0f8e093983112fd723ae3adb638a8925
Author: Damien Lespiau <damien lespiau intel com>
Date:   Fri Aug 26 16:44:50 2011 +0100

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

 clutter-gst/clutter-gst-player.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-player.c b/clutter-gst/clutter-gst-player.c
index 704d95e..98bc7d2 100644
--- a/clutter-gst/clutter-gst-player.c
+++ b/clutter-gst/clutter-gst-player.c
@@ -836,8 +836,16 @@ bus_message_error_cb (GstBus           *bus,
                       ClutterGstPlayer *player)
 {
   ClutterGstPlayerPrivate *priv = PLAYER_GET_PRIVATE (player);
+  GError *error = NULL;
 
   gst_element_set_state (priv->pipeline, GST_STATE_NULL);
+
+  gst_message_parse_error (message, &error, NULL);
+  g_signal_emit_by_name (player, "error", error);
+  g_error_free (error);
+
+  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]