From 59354108fc07be759898c83bfcba9b2234ce9fdc Mon Sep 17 00:00:00 2001 From: 9000h <3009073+9000h@users.noreply.github.com> Date: Fri, 25 Oct 2019 23:25:20 +0200 Subject: [PATCH] second tryfix osd fix core dump at start when using vdr-plugin-skinnopacity the code is maybe not needed for VAAPI anyway --- video.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/video.c b/video.c index eaca691..96888b5 100644 --- a/video.c +++ b/video.c @@ -921,13 +921,11 @@ static void GlxSetupWindow(xcb_window_t window, int width, int height, EGLContex // set gl context #ifdef CUVID 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")); EglEnabled = 0; return; - } + } +#endif Debug(3, "video/egl: ok\n"); #ifdef CUVID