fixed RESU no picture

This commit is contained in:
jojo61 2018-09-28 10:44:49 +02:00
parent 4a28f3f99b
commit 97f53c8274
1 changed files with 5 additions and 3 deletions

View File

@ -1967,12 +1967,14 @@ Debug(3,"Cuvid Clean up\n");
static void CuvidDelHwDecoder(CuvidDecoder * decoder) static void CuvidDelHwDecoder(CuvidDecoder * decoder)
{ {
int i,n; int i,n;
Debug(3,"cuvid del hw decoder\n"); Debug(3,"cuvid del hw decoder cuda_ctx %p\n",decoder->cuda_ctx);
#if 0 //#if 0
glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext);
GlxCheck();
if (decoder->SurfaceFreeN || decoder->SurfaceUsedN) { if (decoder->SurfaceFreeN || decoder->SurfaceUsedN) {
CuvidDestroySurfaces(decoder); CuvidDestroySurfaces(decoder);
} }
#if 0
if (decoder->cuda_ctx) { if (decoder->cuda_ctx) {
cuCtxDestroy (decoder->cuda_ctx); cuCtxDestroy (decoder->cuda_ctx);
decoder->cuda_ctx = NULL; decoder->cuda_ctx = NULL;