diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-04-05 18:01:40 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2011-04-05 18:01:40 +0100 |
commit | fcb648e16153cf08f7d609c2374aeaab953c9e68 (patch) | |
tree | a40a38e739cda3b9d708d7f776c3e2651689d38e | |
parent | 874e7a63565260856636728a20ab83c0dbd7ca6b (diff) | |
download | clutter-gst-fcb648e16153cf08f7d609c2374aeaab953c9e68.tar.gz |
video-texture: Set the pipeline to NULL *before* signalling an error
This allows the user to try to do something in the error callback
without clutter-gst overriding the state of the pipeline just after the
callback...
-rw-r--r-- | clutter-gst/clutter-gst-video-texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c index b0d231b..7cb293f 100644 --- a/clutter-gst/clutter-gst-video-texture.c +++ b/clutter-gst/clutter-gst-video-texture.c @@ -1361,12 +1361,12 @@ bus_message_error_cb (GstBus *bus, GError *error = NULL; ClutterGstVideoTexturePrivate *priv = video_texture->priv; + gst_element_set_state(priv->pipeline, GST_STATE_NULL); + gst_message_parse_error (message, &error, NULL); g_signal_emit_by_name (video_texture, "error", error); - gst_element_set_state(priv->pipeline, GST_STATE_NULL); - g_error_free (error); } |