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:
parent
6dfd2d96aa
commit
9347f2a502
2
video.c
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user