optionally call gtk_type_init() instead of gtk_init() if NO_X is defined. This avoids the X dependency of GStreamer.

Original commit message from CVS:
optionally call gtk_type_init() instead of gtk_init() if NO_X is defined. This
avoids the X dependency of GStreamer.
This commit is contained in:
Wim Taymans 2001-06-03 19:19:45 +00:00
parent fd9e96a6d9
commit dd067c0000

View file

@ -34,6 +34,7 @@
#include "gstqueue.h"
#include "gsttypefind.h"
//#define NO_X
#define MAX_PATH_SPLIT 16
@ -63,7 +64,11 @@ gst_init (int *argc, char **argv[])
if (!g_thread_supported ()) g_thread_init (NULL);
#ifdef NO_X
gtk_type_init ();
#else
gtk_init (argc,argv);
#endif
if (!gst_init_check (argc,argv)) {
exit (0);