[608/906] add GST_GL_PLATFORM_ANY for choosing any platform
authorMatthew Waters <ystreet00@gmail.com>
Wed, 14 Nov 2012 09:39:38 +0000 (20:39 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:25 +0000 (19:31 +0000)
gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstgldisplay.h
gst-libs/gst/gl/gstglrenderer.h

index a13f5dd..afd4a50 100644 (file)
@@ -302,8 +302,7 @@ gst_gl_display_thread_create_context (GstGLDisplay * display)
 
   gst_gl_display_lock (display);
   display->gl_window =
-      gst_gl_window_new (GST_GL_RENDERER_API_OPENGL,
-      display->external_gl_context);
+      gst_gl_window_new (GST_GL_RENDERER_API_ANY, display->external_gl_context);
 
   if (!display->gl_window) {
     gst_gl_display_set_error (display, "Failed to create gl window");
index 0605b3a..54b4d5b 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/video/video.h>
 
 #include "gstglwindow.h"
+#include "gstglrenderer.h"
 #include "gstglshader.h"
 #include "gstglupload.h"
 #include "gstgldownload.h"
@@ -261,7 +262,7 @@ gboolean gst_gl_display_gen_shader (GstGLDisplay * display,
     const gchar * shader_fragment_source, GstGLShader ** shader);
 void gst_gl_display_del_shader (GstGLDisplay * display, GstGLShader * shader);
 
-void gst_gl_display_set_window_id (GstGLDisplay * display, gulong window_id);
+void gst_gl_display_set_window_id (GstGLDisplay * display, guintptr window_id);
 void gst_gl_display_set_client_reshape_callback (GstGLDisplay * display,
     CRCB cb);
 void gst_gl_display_set_client_draw_callback (GstGLDisplay * display, CDCB cb);
index 9e91ccd..b6129c1 100644 (file)
@@ -67,6 +67,7 @@ typedef enum {
   GST_GL_RENDERER_API_GLES2 = 41,
   GST_GL_RENDERER_API_GLES3 = 42,
 
+  GST_GL_RENDERER_API_ANY = 254,
   GST_GL_RENDERER_API_LAST = 255
 } GstGLRendererAPI;