diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2018-05-07 16:01:22 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2018-05-10 01:34:22 +0300 |
commit | c85568342741e0e1b48fc36c780342de8ad29be7 (patch) | |
tree | dea9adb3512522d1e25d98edaddfe61d95975cf9 /libavutil/hwcontext_cuda.c | |
parent | baabd3c2adb0fd1234fd7756e0b1861233753a1e (diff) |
avutil/hwcontext_cuda: add CUstream in cuda hwctx
Diffstat (limited to 'libavutil/hwcontext_cuda.c')
-rw-r--r-- | libavutil/hwcontext_cuda.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |