-
- /* Make sure threads have been initialized */
- if(!g_thread_supported())
- g_error(_("In order to use the Chimara library, you must initialize"
- " the thread system by calling g_threads_init() and "
- "gdk_threads_init() BEFORE the initial call to gtk_init() in "
- "your main program."));
-
- /* Initialize thread-private data */
- extern GPrivate *glk_data_key;
- glk_data_key = g_private_new(NULL);
+
+#if defined(GSTREAMER_0_10_SOUND) || defined(GSTREAMER_1_0_SOUND)
+ /* Make sure GStreamer has been initialized if it hasn't been already;
+ in particular, if you want your program to parse GStreamer command line
+ options then you should do it yourself, before gtk_init(). */
+
+ if( !gst_is_initialized() )
+ gst_init(NULL, NULL);
+#endif