projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a Python player!
[projects/chimara/chimara.git]
/
libchimara
/
init.c
diff --git
a/libchimara/init.c
b/libchimara/init.c
index bfc67dd033bb4d994a9d2fc9cb21c29ea89c228f..d2d161a2f01b78c1117e0ab9aaa814b91cd3c5ef 100644
(file)
--- a/
libchimara/init.c
+++ b/
libchimara/init.c
@@
-1,6
+1,9
@@
#include <config.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <config.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
+#ifdef GSTREAMER_SOUND
+#include <gst/gst.h>
+#endif
static gboolean chimara_initialized = FALSE;
static gboolean chimara_initialized = FALSE;
@@
-21,7
+24,17
@@
chimara_init(void)
" the thread system by calling g_threads_init() and "
"gdk_threads_init() BEFORE the initial call to gtk_init() in "
"your main program."));
" the thread system by calling g_threads_init() and "
"gdk_threads_init() BEFORE the initial call to gtk_init() in "
"your main program."));
+
+#ifdef GSTREAMER_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(). */
+ /* 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);
/* Initialize thread-private data */
extern GPrivate *glk_data_key;
glk_data_key = g_private_new(NULL);