diff options
author | Jens Georg <mail@jensge.org> | 2016-01-01 13:41:50 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2016-01-03 12:55:27 +0100 |
commit | c3429a871a2583eb6ec36c842be4451f66fe0c9d (patch) | |
tree | 87ca0dae5210300d6b24fddd708dc4b4a5defc65 | |
parent | 980a4fa93e68e67271c2b1663bb543c98c7e7dbd (diff) | |
download | rygel-c3429a871a2583eb6ec36c842be4451f66fe0c9d.tar.gz |
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>
-rw-r--r-- | src/media-engines/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 a4940498..117bab27 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, |