From fe3681f6eb60c35da544ace64a6341009ab2b5f7 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Sat, 28 Dec 2019 11:16:01 +0100 Subject: [PATCH] Fix UHD crash with DRM --- video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video.c b/video.c index 05ec05b..5fa098a 100644 --- a/video.c +++ b/video.c @@ -1161,7 +1161,7 @@ static void EglInit(void) EGLContext context; // create egl context - setenv("MESA_GL_VERSION_OVERRIDE","3.3",0); + setenv("MESA_GL_VERSION_OVERRIDE","3.3",0); make_egl(); GLenum err = glewInit(); @@ -3599,7 +3599,7 @@ static void CuvidMixVideo(CuvidDecoder * decoder, __attribute__((unused)) deband.grain = 0.0f; // no grain in HDR img->color.sig_scale = 1.0f; pl->shift_x = -0.5f; -#ifdef VAAPI +#if defined VAAPI || defined USE_DRM render_params.peak_detect_params = NULL; #endif // img->color.primaries = PL_COLOR_PRIM_BT_2020;