[longomatch] Add graph dump in state changes for debug



commit 4f6b648f6b0e781d8a2ae557cf9b061a548444fa
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Aug 6 22:57:02 2010 +0200

    Add graph dump in state changes for debug

 libcesarplayer/src/gst-video-editor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/src/gst-video-editor.c b/libcesarplayer/src/gst-video-editor.c
index aa55103..4667a2e 100644
--- a/libcesarplayer/src/gst-video-editor.c
+++ b/libcesarplayer/src/gst-video-editor.c
@@ -731,6 +731,12 @@ gve_bus_message_cb (GstBus * bus, GstMessage * message, gpointer data)
           gve->priv->update_id = 0;
         }
       }
+      if (old_state == GST_STATE_NULL && new_state == GST_STATE_READY)
+        GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(gve->priv->main_pipeline), 
+            GST_DEBUG_GRAPH_SHOW_ALL, "gst-camera-capturer-null-to-ready");
+      if (old_state == GST_STATE_READY && new_state == GST_STATE_PAUSED)
+        GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(gve->priv->main_pipeline), 
+            GST_DEBUG_GRAPH_SHOW_ALL, "gst-camera-capturer-ready-to-paused");
       break;
     }
     case GST_MESSAGE_EOS:



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