diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-11-30 15:44:45 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-11-30 16:31:42 +0100 |
commit | d0b4111c0ee246c8594ef73a8943199d769a03fe (patch) | |
tree | 6c8e89b807fbd931935c6af619032f81bb34e56d /tools | |
parent | edf47f880d45bd7c740603cd88e4a96b5b19bb97 (diff) |
ges-launch: port over gst-launch verbose setting
... as it is useful for a quick peek as to what is going on.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ges-launch.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/ges-launch.c b/tools/ges-launch.c index b30cb52..4be4138 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -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); |