diff options
Diffstat (limited to 'gst-libs/gst/gl/gstglwindow.c')
-rw-r--r-- | gst-libs/gst/gl/gstglwindow.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c index 3272d7887..49ab3cac6 100644 --- a/gst-libs/gst/gl/gstglwindow.c +++ b/gst-libs/gst/gl/gstglwindow.c @@ -55,6 +55,9 @@ #if GST_GL_HAVE_WINDOW_ANDROID #include "android/gstglwindow_android_egl.h" #endif +#if GST_GL_HAVE_WINDOW_EAGL +#include "eagl/gstglwindow_eagl.h" +#endif #if GST_GL_HAVE_WINDOW_DISPMANX #include "dispmanx/gstglwindow_dispmanx_egl.h" #endif @@ -178,6 +181,10 @@ gst_gl_window_new (GstGLDisplay * display) if (!window && (!user_choice || g_strstr_len (user_choice, 7, "android"))) window = GST_GL_WINDOW (gst_gl_window_android_egl_new ()); #endif +#if GST_GL_HAVE_WINDOW_EAGL + if (!window && (!user_choice || g_strstr_len (user_choice, 7, "eagl"))) + window = GST_GL_WINDOW (gst_gl_window_eagl_new ()); +#endif if (!window) { /* subclass returned a NULL window */ GST_WARNING ("Could not create window. user specified %s, creating dummy" |