mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
More cuvid fixes
This commit is contained in:
parent
4334894515
commit
1274e673ec
4
video.c
4
video.c
@ -2053,10 +2053,12 @@ static void CuvidDelHwDecoder(CuvidDecoder * decoder)
|
|||||||
eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, eglContext);
|
eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, eglContext);
|
||||||
EglCheck();
|
EglCheck();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#if defined PLACEBO || defined VAAPI
|
||||||
if (decoder->SurfaceFreeN || decoder->SurfaceUsedN) {
|
if (decoder->SurfaceFreeN || decoder->SurfaceUsedN) {
|
||||||
CuvidDestroySurfaces(decoder);
|
CuvidDestroySurfaces(decoder);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (decoder == CuvidDecoders[0])
|
if (decoder == CuvidDecoders[0])
|
||||||
VideoThreadUnlock();
|
VideoThreadUnlock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user