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

Fix CUVID without placebo

This commit is contained in:
jojo61 2021-01-11 16:13:04 +01:00
parent 6dfd2d96aa
commit 9347f2a502

View File

@ -1624,6 +1624,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder)
#ifdef PLACEBO #ifdef PLACEBO
if (p->hasdma_buf) { if (p->hasdma_buf) {
#endif #endif
#ifdef VAAPI
if (decoder->images[i * Planes + j]) { if (decoder->images[i * Planes + j]) {
DestroyImageKHR(eglGetCurrentDisplay(), decoder->images[i * Planes + j]); DestroyImageKHR(eglGetCurrentDisplay(), decoder->images[i * Planes + j]);
if (decoder->fds[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->fds[i * Planes + j] = 0;
decoder->images[i * Planes + j] = 0; decoder->images[i * Planes + j] = 0;
#endif
#ifdef PLACEBO #ifdef PLACEBO
} }
#endif #endif