[ekiga] gstreamer: dump the pipeline to a dot file if GST_DEBUG_DUMP_DOT_DIR is set, for easier debugging



commit dd0859ebf5743f46533688e72b7972da197e7273
Author: Julien Puydt <jpuydt free fr>
Date:   Sun Sep 30 12:57:58 2012 +0200

    gstreamer: dump the pipeline to a dot file if GST_DEBUG_DUMP_DOT_DIR is set, for easier debugging

 plugins/gstreamer/gst-helper.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gstreamer/gst-helper.cpp b/plugins/gstreamer/gst-helper.cpp
index ba9f0b3..91dd443 100644
--- a/plugins/gstreamer/gst-helper.cpp
+++ b/plugins/gstreamer/gst-helper.cpp
@@ -131,6 +131,13 @@ gst_helper_set_frame_data (gst_helper* self,
 {
   gchar* tmp = NULL;
   GstBuffer* buffer = NULL;
+  static bool done = false;
+
+  if (!done) {
+
+    done = true;
+    GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(self->pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "pipeline");
+  }
 
   if (self->active) {
 



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