We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c2f1b commit effa3afCopy full SHA for effa3af
src/vabackend.c
@@ -1123,9 +1123,13 @@ static VAStatus nvCreateContext(
1123
//.vidLock = drv->vidLock
1124
};
1125
1126
+ CHECK_CUDA_RESULT_RETURN(cu->cuCtxPushCurrent(drv->cudaContext), VA_STATUS_ERROR_OPERATION_FAILED);
1127
+
1128
CUvideodecoder decoder;
1129
CHECK_CUDA_RESULT_RETURN(cv->cuvidCreateDecoder(&decoder, &vdci), VA_STATUS_ERROR_ALLOCATION_FAILED);
1130
1131
+ CHECK_CUDA_RESULT_RETURN(cu->cuCtxPopCurrent(NULL), VA_STATUS_ERROR_OPERATION_FAILED);
1132
1133
Object contextObj = allocateObject(drv, OBJECT_TYPE_CONTEXT, sizeof(NVContext));
1134
LOG("Creating decoder: %p for context id: %d", decoder, contextObj->id);
1135
0 commit comments