Fix program for GStreamer < 0.10.31
authorPhilip Chimento <philip.chimento@gmail.com>
Wed, 2 Feb 2011 23:16:27 +0000 (00:16 +0100)
committerPhilip Chimento <philip.chimento@gmail.com>
Wed, 2 Feb 2011 23:16:27 +0000 (00:16 +0100)
It seems that gst_is_initialized() wasn't added until version 0.10.31.
And it just so happens that Ubuntu 10.10 has 0.10.30, so compilation
was failing.

libchimara/init.c

index b0da4c435947186794551f36dedf71d4697b71aa..d2d161a2f01b78c1117e0ab9aaa814b91cd3c5ef 100644 (file)
@@ -29,7 +29,9 @@ 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