[PATCH spice-gtk] spicy: Do not call gst_init directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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 ".");
-- 
2.21.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]