mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
gst: Don't intercept --help in gst_init()
Before this patch gst_init would intercept --help, causing for example cheese's --help to look like this: [hans@shalem cheese]$ cheese --help Usage: cheese [OPTION...] - GStreamer initialization Help Options: -h, --help Show help options --help-all Show all help options --help-gst Show GStreamer Options gst_init is the only gfoo_init function which does this. https://bugzilla.gnome.org/show_bug.cgi?id=702089
This commit is contained in:
parent
a2b8167b87
commit
7fc2602761
1 changed files with 1 additions and 0 deletions
|
@ -327,6 +327,7 @@ gst_init_check (int *argc, char **argv[], GError ** err)
|
|||
#ifndef GST_DISABLE_OPTION_PARSING
|
||||
ctx = g_option_context_new ("- GStreamer initialization");
|
||||
g_option_context_set_ignore_unknown_options (ctx, TRUE);
|
||||
g_option_context_set_help_enabled (ctx, FALSE);
|
||||
group = gst_init_get_option_group ();
|
||||
g_option_context_add_group (ctx, group);
|
||||
res = g_option_context_parse (ctx, argc, argv, err);
|
||||
|
|
Loading…
Reference in a new issue