summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-03-25 12:38:07 +0100
committerWim Taymans <wtaymans@redhat.com>2014-03-25 12:38:07 +0100
commitf85ce91e9d148fde9e8774c64f129f912a1e47ff (patch)
tree96f5fa271e1641a548f501c86d2a1258ec59ba3a /tools
parent093574053fae243ec5fcfd6adae8185053b1e896 (diff)
launch: place the deep-notify on the right pipeline
If the toplevel bin is not not a pipeline, we place the bin in a pipeline. Also make sure that we connect to the deep-notify of this new pipeline because we will g_signal_handler_disconnect() from it later.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-launch.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 32aeb658d..a644c0edc 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -988,13 +988,6 @@ main (int argc, char *argv[])
return 1;
}
- if (verbose) {
- gchar **exclude_list =
- exclude_args ? g_strsplit (exclude_args, ",", 0) : NULL;
- deep_notify_id = g_signal_connect (pipeline, "deep-notify",
- G_CALLBACK (gst_object_default_deep_notify), exclude_list);
- }
-
if (!savefile) {
GstState state, pending;
GstStateChangeReturn ret;
@@ -1011,6 +1004,12 @@ main (int argc, char *argv[])
gst_bin_add (GST_BIN (real_pipeline), pipeline);
pipeline = real_pipeline;
}
+ if (verbose) {
+ gchar **exclude_list =
+ exclude_args ? g_strsplit (exclude_args, ",", 0) : NULL;
+ deep_notify_id = g_signal_connect (pipeline, "deep-notify",
+ G_CALLBACK (gst_object_default_deep_notify), exclude_list);
+ }
#if 0
if (check_index) {
/* gst_index_new() creates a null-index, it does not store anything, but