[rygel] media-engine-gst: Add pipeline debug dumping



commit 78ebba723028c3bceb53b95f33783740d47b14f0
Author: Jens Georg <mail jensge org>
Date:   Fri Jan 1 13:41:50 2016 +0100

    media-engine-gst: Add pipeline debug dumping
    
    Use as in gst-launch with GST_DEBUG_DUMP_DOT_DIR=
    
    Signed-off-by: Jens Georg <mail jensge org>

 .../gstreamer/rygel-gst-data-source.vala           |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/media-engines/gstreamer/rygel-gst-data-source.vala 
b/src/media-engines/gstreamer/rygel-gst-data-source.vala
index a494049..117bab2 100644
--- a/src/media-engines/gstreamer/rygel-gst-data-source.vala
+++ b/src/media-engines/gstreamer/rygel-gst-data-source.vala
@@ -231,6 +231,12 @@ internal class Rygel.GstDataSource : Rygel.DataSource, GLib.Object {
                 }
             }
 
+            var filename = "rygel_media_engine_%d_%d".printf (old_state,
+                                                               new_state);
+            Debug.bin_to_dot_file_with_ts (this.pipeline,
+                                           DebugGraphDetails.ALL,
+                                           filename);
+
             if (this.seek != null) {
                 if (old_state == State.READY && new_state == State.PAUSED) {
                     if (this.perform_seek ()) {
@@ -243,6 +249,10 @@ internal class Rygel.GstDataSource : Rygel.DataSource, GLib.Object {
             string err_msg;
 
             if (message.type == MessageType.ERROR) {
+                Debug.bin_to_dot_file_with_ts (this.pipeline,
+                                               DebugGraphDetails.ALL,
+                                               "rygel_media_engine_error");
+
                 message.parse_error (out err, out err_msg);
                 critical (_("Error from pipeline %s: %s"),
                           this.pipeline.name,


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