1
0
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:
jojo61 2019-12-17 11:12:00 +01:00
parent 4334894515
commit 1274e673ec

View File

@ -2054,9 +2054,11 @@ static void CuvidDelHwDecoder(CuvidDecoder * decoder)
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();