mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
more fixes
This commit is contained in:
parent
961332309c
commit
53ef055f5e
2
video.c
2
video.c
@ -1765,6 +1765,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder)
|
|||||||
GlxCheck();
|
GlxCheck();
|
||||||
|
|
||||||
if (decoder->cuda_ctx) {
|
if (decoder->cuda_ctx) {
|
||||||
|
checkCudaErrors(cuCtxPushCurrent(decoder->cuda_ctx));
|
||||||
for (i=0;i<decoder->SurfacesNeeded;i++) {
|
for (i=0;i<decoder->SurfacesNeeded;i++) {
|
||||||
for (j=0;j<2;j++) {
|
for (j=0;j<2;j++) {
|
||||||
if (decoder->cu_res[i][j]) {
|
if (decoder->cu_res[i][j]) {
|
||||||
@ -1773,6 +1774,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
checkCudaErrors(cuCtxPopCurrent(NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user