g_option_context_parse with -verbose or -messages
Tim Müller
tim at centricular.com
Fri Jul 22 10:28:45 UTC 2016
On Wed, 2016-07-20 at 11:09 -0700, ht techdev wrote:
Hi,
> Passing –verbose or –messages as cli arguments to an app, which uses
> g_option_context_parse to parse arguments, i.e.,
> …
> if (!g_option_context_parse(ctx, &argc, &argv, &err)) {
> g_printerr("Failed to initialize: %s\n", err->message);
> g_error_free(err);
> return 1;
> }
> …
> Generates the following error:
> Failed to initialize: Unknown option –messages
> (Similar thing with –v or –m)
> --gst-debug or--gst-plugin-path are fine, though.
> Any thoughts?
--gst-debug and --gst-plugin-path are options that are handled by
GStreamer, --verbose or --messages are not options that GStreamer
handles, your app will have to add/implement those (as gst-launch
does).
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list