[Spice-devel] [PATCH spice-gtk] spicy: Do not call gst_init directly
Frediano Ziglio
fziglio at redhat.com
Mon Sep 23 08:54:21 UTC 2019
ping
>
> GStreamer is already initialized using gst_init_get_option_group and
> gst_init_get_option_group.
>
> From gst_init documentation:
> WARNING: This function does not work in the same way as
> corresponding functions in other glib-style libraries,
> such as gtk_init(). In particular, unknown command line options
> cause this function to abort program execution.
>
> This luckily is not true (program won't abort if you pass --gst-foo
> for instance) but better to stick to documentation.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> tools/spicy.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/spicy.c b/tools/spicy.c
> index 403a66d1..8ca62f91 100644
> --- a/tools/spicy.c
> +++ b/tools/spicy.c
> @@ -2017,7 +2017,6 @@ int main(int argc, char *argv[])
>
> /* parse opts */
> gtk_init(&argc, &argv);
> - gst_init(&argc, &argv);
> context = g_option_context_new("- spice client test application");
> g_option_context_set_summary(context, "Gtk+ test client to connect to
> Spice servers.");
> g_option_context_set_description(context, "Report bugs to "
> PACKAGE_BUGREPORT ".");
More information about the Spice-devel
mailing list