From dd067c0000c1e3788ed9b179a764d107595c406a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 3 Jun 2001 19:19:45 +0000 Subject: [PATCH] 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. --- gst/gst.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gst.c b/gst/gst.c index e859b04392..970a6bbd8a 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -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);