summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_cuda.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-09-29 20:40:23 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-09-29 22:58:34 +0200
commit97e7f03d356b26b01e440e817c21f157f99e0842 (patch)
treee74b7279716a29b026d70ab036b11f9d528638af /libavutil/hwcontext_cuda.c
parentba0e5165331d20fb5c37464460f20b7cc1571591 (diff)
downloadffmpeg-97e7f03d356b26b01e440e817c21f157f99e0842.tar.gz
avutil/hwcontext_cuda: use proper synchronization flag
Diffstat (limited to 'libavutil/hwcontext_cuda.c')
-rw-r--r--libavutil/hwcontext_cuda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index fa24c5d37b..40d2971a98 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -283,7 +283,7 @@ static int cuda_device_create(AVHWDeviceContext *ctx, const char *device,
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) {
av_log(ctx, AV_LOG_ERROR, "Error creating a CUDA context\n");
return AVERROR_UNKNOWN;