g_option_context_parse with -verbose or -messages

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

g_option_context_parse with -verbose or -messages

HtGst

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?

Cheers,


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: g_option_context_parse with -verbose or -messages

Tim Müller
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel