Use statically-allocated thread private data
[projects/chimara/chimara.git] / libchimara / init.c
index b0da4c435947186794551f36dedf71d4697b71aa..ab7522cbc545d6240ea578f2a1963796fcb4200d 100644 (file)
@@ -29,13 +29,11 @@ chimara_init(void)
                /* 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() )
+               
+               /* SUCKY DEBIAN: gst_is_initialized() supported from 0.10.30 onward */
+               /*if( !gst_is_initialized() )*/
                        gst_init(NULL, NULL);
 #endif
-
-               /* Initialize thread-private data */
-               extern GPrivate *glk_data_key;
-               glk_data_key = g_private_new(NULL);
        }
 }