diff options
author | wm4 <wm4@nowhere> | 2016-01-22 19:54:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-22 19:56:10 +0100 |
commit | 4c25f49236fc0aef29ba14b2905ea02edab6ec07 (patch) | |
tree | bb31d39345b269014e34467a2846f5f266b4c721 | |
parent | 135a7217b92c0b1c29ea40ab405566e72d23ae4b (diff) | |
download | mpv-4c25f49236fc0aef29ba14b2905ea02edab6ec07.tar.bz2 mpv-4c25f49236fc0aef29ba14b2905ea02edab6ec07.tar.xz |
vo_opengl: vaapi: don't expect EGL exts. to be in common ext. string
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index 62a555b1c9..9d37697581 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -210,8 +210,12 @@ static int create(struct gl_hwdec *hw) if (!eglGetCurrentDisplay()) return -1; - if (!strstr(gl->extensions, "EXT_image_dma_buf_import") || - !strstr(gl->extensions, "EGL_KHR_image_base") || + const char *exts = eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS); + if (!exts) + return -1; + + if (!strstr(exts, "EXT_image_dma_buf_import") || + !strstr(exts, "EGL_KHR_image_base") || !strstr(gl->extensions, "GL_OES_EGL_image") || !(gl->mpgl_caps & MPGL_CAP_TEX_RG)) return -1; |