vlc | branch: master | Alexandre Janniaux <[email protected]> | Mon Oct 21 
23:39:15 2019 +0200| [995dfaf01b2a50f292f9c709845aa66e78444af5] | committer: 
Thomas Guillem

vaapi: add typedefs for OES_EGL_image extension

OES_EGL_image extension is an OpenGL ES extension and the typedef might
not be available on EGL or OpenGL extension headers.

As of October 19 2019, it makes compilation fail on my ArchLinux
because they are not defined anymore in the headers included.

Signed-off-by: Thomas Guillem <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=995dfaf01b2a50f292f9c709845aa66e78444af5
---

 modules/video_output/opengl/converter_vaapi.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/video_output/opengl/converter_vaapi.c 
b/modules/video_output/opengl/converter_vaapi.c
index 2336e38a11..b4d7fc8bef 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -35,6 +35,15 @@
 #include "converter.h"
 #include "../../hw/vaapi/vlc_vaapi.h"
 
+/* From 
https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image.txt
+ * The extension is an OpenGL ES extension but can (and usually is) available 
on
+ * OpenGL implementations. */
+#ifndef GL_OES_EGL_image
+#define GL_OES_EGL_image 1
+typedef void *GLeglImageOES;
+typedef void (*PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)(GLenum target, 
GLeglImageOES image);
+#endif
+
 struct priv
 {
     VADisplay vadpy;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to