From 9347f2a502c684c0ec01854359181350b479d48a Mon Sep 17 00:00:00 2001 From: jojo61 Date: Mon, 11 Jan 2021 16:13:04 +0100 Subject: [PATCH] Fix CUVID without placebo --- video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video.c b/video.c index 9b7a041..a348a07 100644 --- a/video.c +++ b/video.c @@ -1624,6 +1624,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder) #ifdef PLACEBO if (p->hasdma_buf) { #endif +#ifdef VAAPI if (decoder->images[i * Planes + j]) { DestroyImageKHR(eglGetCurrentDisplay(), decoder->images[i * Planes + j]); if (decoder->fds[i * Planes + j]) @@ -1631,6 +1632,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder) } decoder->fds[i * Planes + j] = 0; decoder->images[i * Planes + j] = 0; +#endif #ifdef PLACEBO } #endif