File pidgin-crash-missing-gst-registry.patch of Package pidgin

Index: pidgin-2.10.10/pidgin/gtkmain.c
===================================================================
--- pidgin-2.10.10.orig/pidgin/gtkmain.c
+++ pidgin-2.10.10/pidgin/gtkmain.c
@@ -75,7 +75,7 @@
 #endif
 
 #include <getopt.h>
-
+#include <gst/gst.h>
 
 #ifdef HAVE_SIGNAL_H
 
@@ -528,6 +528,8 @@ int main(int argc, char *argv[])
 	 */
 	g_thread_init(NULL);
 #endif
+	/* make sure Gst is initialized before any other Glib/Gst calls (see Gst docs) */
+	gst_init(NULL, NULL);
 
 	g_set_prgname("Pidgin");
 
openSUSE Build Service is sponsored by