Skip to content
Snippets Groups Projects
Commit 97e7f03d authored by Timo Rothenpieler's avatar Timo Rothenpieler
Browse files

avutil/hwcontext_cuda: use proper synchronization flag

parent ba0e5165
No related branches found
No related tags found
No related merge requests found
...@@ -283,7 +283,7 @@ static int cuda_device_create(AVHWDeviceContext *ctx, const char *device, ...@@ -283,7 +283,7 @@ static int cuda_device_create(AVHWDeviceContext *ctx, const char *device,
return AVERROR_UNKNOWN; return AVERROR_UNKNOWN;
} }
err = cuCtxCreate(&hwctx->cuda_ctx, 0, cu_device); err = cuCtxCreate(&hwctx->cuda_ctx, CU_CTX_SCHED_BLOCKING_SYNC, cu_device);
if (err != CUDA_SUCCESS) { if (err != CUDA_SUCCESS) {
av_log(ctx, AV_LOG_ERROR, "Error creating a CUDA context\n"); av_log(ctx, AV_LOG_ERROR, "Error creating a CUDA context\n");
return AVERROR_UNKNOWN; return AVERROR_UNKNOWN;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment