Skip to content
Snippets Groups Projects
Commit f24ad017 authored by Wim Taymans's avatar Wim Taymans Committed by Tim-Philipp Müller
Browse files

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.
parent 2b7412ac
No related branches found
No related tags found
No related merge requests found
......@@ -983,13 +983,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;
......@@ -1006,6 +999,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment