From c85568342741e0e1b48fc36c780342de8ad29be7 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Mon, 7 May 2018 15:01:22 +0200 Subject: avutil/hwcontext_cuda: add CUstream in cuda hwctx --- libavutil/hwcontext_cuda.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavutil/hwcontext_cuda.c') diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c index 37827a770c..f3e81680e9 100644 --- a/libavutil/hwcontext_cuda.c +++ b/libavutil/hwcontext_cuda.c @@ -386,6 +386,9 @@ static int cuda_device_create(AVHWDeviceContext *ctx, const char *device, goto error; } + // Setting stream to NULL will make functions automatically use the default CUstream + hwctx->stream = NULL; + cu->cuCtxPopCurrent(&dummy); hwctx->internal->is_allocated = 1; -- cgit v1.2.3