Fix CUVID without placebo

This commit is contained in:
jojo61 2021-01-11 16:13:04 +01:00
parent 6dfd2d96aa
commit 9347f2a502
1 changed files with 2 additions and 0 deletions

View File

@ -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