1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

second tryfix osd

fix core dump at start when using vdr-plugin-skinnopacity
the code is maybe not needed for VAAPI anyway
This commit is contained in:
9000h 2019-10-25 23:25:20 +02:00 committed by GitHub
parent d25f456e67
commit 59354108fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -921,13 +921,11 @@ static void GlxSetupWindow(xcb_window_t window, int width, int height, EGLContex
// set gl context // set gl context
#ifdef CUVID #ifdef CUVID
if (!glXMakeCurrent(XlibDisplay, window, context)) { if (!glXMakeCurrent(XlibDisplay, window, context)) {
#else
if (!eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, context )) {
#endif
Fatal(_("video/egl: GlxSetupWindow can't make egl/glx context current\n")); Fatal(_("video/egl: GlxSetupWindow can't make egl/glx context current\n"));
EglEnabled = 0; EglEnabled = 0;
return; return;
} }
#endif
Debug(3, "video/egl: ok\n"); Debug(3, "video/egl: ok\n");
#ifdef CUVID #ifdef CUVID