[clutter-gst] video-texture: Set the pipeline to NULL *before* signalling an error



commit fcb648e16153cf08f7d609c2374aeaab953c9e68
Author: Damien Lespiau <damien lespiau intel com>
Date:   Tue Apr 5 18:01:40 2011 +0100

    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...

 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);
 }
 



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