summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-09-04 23:28:19 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-09-04 23:28:19 +0200
commitdf0f696df91a4ffb4021096ff5bf68a38022b3da (patch)
treebb99f63dc3ee8cf61fbab1698c7e8a4f1c56f9e7 /src
parentsmall refactoring (diff)
additional debug output
Diffstat (limited to 'src')
-rw-r--r--src/sydra.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sydra.c b/src/sydra.c
index 25cc4fe..b0c6a77 100644
--- a/src/sydra.c
+++ b/src/sydra.c
@@ -214,6 +214,12 @@ int main_loop(options_t* opt)
gst_bus_add_watch(bus, bus_call, loop);
gst_object_unref(bus);
+ gulong deep_notify_id = 0;
+ if(opt->debug_) {
+ deep_notify_id = g_signal_connect (pipeline, "deep-notify",
+ G_CALLBACK (gst_object_default_deep_notify), NULL);
+ }
+
log_printf(INFO, "Set State: Paused");
gst_element_set_state(pipeline, GST_STATE_PAUSED);
log_printf(INFO, "Set State: Playing");
@@ -224,6 +230,9 @@ int main_loop(options_t* opt)
g_unix_signal_add(SIGTERM, sig_handler_terminate, loop);
g_main_loop_run(loop);
+ if (deep_notify_id != 0)
+ g_signal_handler_disconnect (pipeline, deep_notify_id);
+
log_printf(NOTICE, "Stopping pipeline");
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref(GST_OBJECT(pipeline));