diff options
author | Matthew Waters <ystreet00@gmail.com> | 2013-01-10 01:13:23 +1100 |
---|---|---|
committer | Matthew Waters <ystreet00@gmail.com> | 2014-03-15 18:36:52 +0100 |
commit | fa3c3b8434a9eff02b969fd27dad1aad1be43707 (patch) | |
tree | e0ee3ea95bc7b9b495bef3b4c0870102f822be9d /gst-libs/gst/gl/gstglwindow.c | |
parent | 4e60858f01b4d30888f876cab371228d6de4164c (diff) | |
download | gstreamer-plugins-bad-fa3c3b8434a9eff02b969fd27dad1aad1be43707.tar.gz |
[642/906] add gstglconfig.h for apps to find out what our capabilites are
ie libgstgl can be compiled with any combination of opengl/gles2
Diffstat (limited to 'gst-libs/gst/gl/gstglwindow.c')
-rw-r--r-- | gst-libs/gst/gl/gstglwindow.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c index c51e333ab..3ace45cb6 100644 --- a/gst-libs/gst/gl/gstglwindow.c +++ b/gst-libs/gst/gl/gstglwindow.c @@ -26,16 +26,16 @@ #include "gstglwindow.h" -#ifdef HAVE_WINDOW_X11 +#if GST_GL_HAVE_WINDOW_X11 #include "x11/gstglwindow_x11.h" #endif -#ifdef HAVE_WINDOW_WIN32 +#if GST_GL_HAVE_WINDOW_WIN32 #include "win32/gstglwindow_win32.h" #endif -#ifdef HAVE_WINDOW_COCOA +#if GST_GL_HAVE_WINDOW_COCOA #include "cocoa/gstglwindow_cocoa.h" #endif -#ifdef HAVE_WINDOW_WAYLAND +#if GST_GL_HAVE_WINDOW_WAYLAND #include "wayland/gstglwindow_wayland_egl.h" #endif @@ -83,24 +83,24 @@ gst_gl_window_new (GstGLAPI api, guintptr external_gl_context, GError ** error) user_choice = g_getenv ("GST_GL_WINDOW"); GST_INFO ("creating a window, user choice:%s", user_choice); -#ifdef HAVE_WINDOW_X11 +#if GST_GL_HAVE_WINDOW_X11 if (!window && (!user_choice || g_strstr_len (user_choice, 3, "x11"))) window = GST_GL_WINDOW (gst_gl_window_x11_new (api, external_gl_context, error)); #endif -#ifdef HAVE_WINDOW_WIN32 +#if GST_GL_HAVE_WINDOW_WIN32 if (!window && (!user_choice || g_strstr_len (user_choice, 5, "win32"))) window = GST_GL_WINDOW (gst_gl_window_win32_new (api, external_gl_context, error)); #endif -#ifdef HAVE_WINDOW_COCOA +#if GST_GL_HAVE_WINDOW_COCOA if (!window && (!user_choice || g_strstr_len (user_choice, 5, "cocoa"))) window = GST_GL_WINDOW (gst_gl_window_cocoa_new (api, external_gl_context, error)); #endif -#ifdef HAVE_WINDOW_WAYLAND +#if GST_GL_HAVE_WINDOW_WAYLAND if (!window && (!user_choice || g_strstr_len (user_choice, 7, "wayland"))) window = GST_GL_WINDOW (gst_gl_window_wayland_egl_new (api, |