diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-29 20:40:23 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-29 22:58:34 +0200 |
commit | 97e7f03d356b26b01e440e817c21f157f99e0842 (patch) | |
tree | e74b7279716a29b026d70ab036b11f9d528638af /libavutil | |
parent | ba0e5165331d20fb5c37464460f20b7cc1571591 (diff) | |
download | ffmpeg-97e7f03d356b26b01e440e817c21f157f99e0842.tar.gz |
avutil/hwcontext_cuda: use proper synchronization flag
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_cuda.c | 2 |
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; |