summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/gl/gstglcontext.c')
-rw-r--r--gst-libs/gst/gl/gstglcontext.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c
index 10796fe28..23dfc0b96 100644
--- a/gst-libs/gst/gl/gstglcontext.c
+++ b/gst-libs/gst/gl/gstglcontext.c
@@ -61,6 +61,9 @@
#if GST_GL_HAVE_PLATFORM_WGL
#include "win32/gstglcontext_wgl.h"
#endif
+#if GST_GL_HAVE_PLATFORM_EAGL
+#include "eagl/gstglcontext_eagl.h"
+#endif
#define USING_OPENGL(display) (display->gl_api & GST_GL_API_OPENGL)
#define USING_OPENGL3(display) (display->gl_api & GST_GL_API_OPENGL3)
@@ -218,6 +221,10 @@ gst_gl_context_new (GstGLDisplay * display)
context = GST_GL_CONTEXT (gst_gl_context_wgl_new ());
}
#endif
+#if GST_GL_HAVE_PLATFORM_EAGL
+ if (!context && (!user_choice || g_strstr_len (user_choice, 5, "eagl")))
+ context = GST_GL_CONTEXT (gst_gl_context_eagl_new ());
+#endif
if (!context) {
/* subclass returned a NULL context */