From: Philip Chimento Date: Wed, 2 Feb 2011 23:16:27 +0000 (+0100) Subject: Fix program for GStreamer < 0.10.31 X-Git-Tag: v0.9~147 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=a4300116aa7b2673b6d865ead3a5ff2f4ba80565;p=projects%2Fchimara%2Fchimara.git Fix program for GStreamer < 0.10.31 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. --- diff --git a/libchimara/init.c b/libchimara/init.c index b0da4c4..d2d161a 100644 --- a/libchimara/init.c +++ b/libchimara/init.c @@ -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