From 8aa807eec638ed210351815e3bd3a8c670329060 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Sat, 22 Apr 2023 13:07:57 +0200 Subject: [PATCH] Disable vaapi Lock only with placebo --- video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video.c b/video.c index e58667b..0b972a4 100644 --- a/video.c +++ b/video.c @@ -2375,7 +2375,7 @@ void generateVAAPIImage(CuvidDecoder *decoder, int index, const AVFrame *frame, return; } // vaSyncSurface(decoder->VaDisplay, (unsigned int)frame->data[3]); -#ifdef USE_DRM +#if defined USE_DRM && defined PLACEBO_GL SharedContext; #else Lock_and_SharedContext; @@ -2452,7 +2452,7 @@ void generateVAAPIImage(CuvidDecoder *decoder, int index, const AVFrame *frame, decoder->pl_frames[index].planes[n].texture = pl_tex_create(p->gpu, &tex_params); } -#ifdef USE_DRM +#if defined USE_DRM && defined PLACEBO_GL NoContext; #else Unlock_and_NoContext;