diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-08-26 16:44:50 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-08-26 17:09:55 +0100 |
commit | 5b64e6ce0f8e093983112fd723ae3adb638a8925 (patch) | |
tree | b938006de479a83bdc12bd7b22a9922c0adae59f | |
parent | 28fd3499693110838df61c019968a2a6ea136fef (diff) | |
download | clutter-gst-5b64e6ce0f8e093983112fd723ae3adb638a8925.tar.gz |
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.
-rw-r--r-- | 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 |