[longomatch] Set the pipeline to NULL after an error in the editor



commit caf1fe6043b8a13c746383840883ea0f3f646e9e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Jan 29 17:09:43 2015 +0100

    Set the pipeline to NULL after an error in the editor
    
    This prevents receiving for elements in the NULL_TO_READY transition

 libcesarplayer/gst-video-editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/gst-video-editor.c b/libcesarplayer/gst-video-editor.c
index a72f919..0c5e2d0 100644
--- a/libcesarplayer/gst-video-editor.c
+++ b/libcesarplayer/gst-video-editor.c
@@ -389,7 +389,7 @@ gve_bus_message_cb (GstBus * bus, GstMessage * message, gpointer data)
     case GST_MESSAGE_ERROR:
       gve_error_msg (gve, message);
       if (gve->priv->main_pipeline)
-        gst_element_set_state (gve->priv->main_pipeline, GST_STATE_READY);
+        gst_element_set_state (gve->priv->main_pipeline, GST_STATE_NULL);
       break;
     case GST_MESSAGE_WARNING:
       GST_WARNING ("Warning message: %" GST_PTR_FORMAT, message);


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