mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 02:32:23 +00:00
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:
parent
edf47f880d
commit
d0b4111c0e
1 changed files with 13 additions and 0 deletions
|
@ -399,11 +399,13 @@ main (int argc, gchar ** argv)
|
||||||
gchar *video_restriction = (gchar *) "ANY";
|
gchar *video_restriction = (gchar *) "ANY";
|
||||||
gchar *audio_preset = NULL;
|
gchar *audio_preset = NULL;
|
||||||
gchar *video_preset = NULL;
|
gchar *video_preset = NULL;
|
||||||
|
gchar *exclude_args = NULL;
|
||||||
static gboolean render = FALSE;
|
static gboolean render = FALSE;
|
||||||
static gboolean smartrender = FALSE;
|
static gboolean smartrender = FALSE;
|
||||||
static gboolean list_transitions = FALSE;
|
static gboolean list_transitions = FALSE;
|
||||||
static gboolean list_patterns = FALSE;
|
static gboolean list_patterns = FALSE;
|
||||||
static gdouble thumbinterval = 0;
|
static gdouble thumbinterval = 0;
|
||||||
|
static gboolean verbose = FALSE;
|
||||||
gchar *save_path = NULL;
|
gchar *save_path = NULL;
|
||||||
gchar *load_path = NULL;
|
gchar *load_path = NULL;
|
||||||
GOptionEntry options[] = {
|
GOptionEntry options[] = {
|
||||||
|
@ -437,6 +439,10 @@ main (int argc, gchar ** argv)
|
||||||
"Save project to file before rendering", "<path>"},
|
"Save project to file before rendering", "<path>"},
|
||||||
{"load", 'q', 0, G_OPTION_ARG_STRING, &load_path,
|
{"load", 'q', 0, G_OPTION_ARG_STRING, &load_path,
|
||||||
"Load project from file before rendering", "<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}
|
{NULL}
|
||||||
};
|
};
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
|
@ -520,6 +526,13 @@ main (int argc, gchar ** argv)
|
||||||
ges_timeline_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW);
|
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 */
|
/* Play the pipeline */
|
||||||
mainloop = g_main_loop_new (NULL, FALSE);
|
mainloop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue