ges-launch: port over gst-launch verbose setting

... as it is useful for a quick peek as to what is going on.
This commit is contained in:
Mark Nauwelaerts 2011-11-30 15:44:45 +01:00
parent edf47f880d
commit d0b4111c0e

View file

@ -399,11 +399,13 @@ main (int argc, gchar ** argv)
gchar *video_restriction = (gchar *) "ANY";
gchar *audio_preset = NULL;
gchar *video_preset = NULL;
gchar *exclude_args = NULL;
static gboolean render = FALSE;
static gboolean smartrender = FALSE;
static gboolean list_transitions = FALSE;
static gboolean list_patterns = FALSE;
static gdouble thumbinterval = 0;
static gboolean verbose = FALSE;
gchar *save_path = NULL;
gchar *load_path = NULL;
GOptionEntry options[] = {
@ -437,6 +439,10 @@ main (int argc, gchar ** argv)
"Save project to file before rendering", "<path>"},
{"load", 'q', 0, G_OPTION_ARG_STRING, &load_path,
"Load project from file before rendering", "<path>"},
{"verbose", 0, 0, G_OPTION_ARG_NONE, &verbose,
"Output status information and property notifications", NULL},
{"exclude", 'X', 0, G_OPTION_ARG_NONE, &exclude_args,
"Do not output status information of TYPE", "TYPE1,TYPE2,..."},
{NULL}
};
GOptionContext *ctx;
@ -520,6 +526,13 @@ main (int argc, gchar ** argv)
ges_timeline_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW);
}
if (verbose) {
gchar **exclude_list =
exclude_args ? g_strsplit (exclude_args, ",", 0) : NULL;
g_signal_connect (pipeline, "deep-notify",
G_CALLBACK (gst_object_default_deep_notify), exclude_list);
}
/* Play the pipeline */
mainloop = g_main_loop_new (NULL, FALSE);