mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
fd9e96a6d9
commit
dd067c0000
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue