nvcodec: Use default flag for CUDA stream creation

Since nvdec/nvenc engine is running on default stream,
non-default CUDA stream should be synchronized with default
stream eventually.
This commit is contained in:
Seungha Yang 2019-08-19 13:22:20 +09:00 committed by Sebastian Dröge
parent 55db6413d7
commit eab564d857
2 changed files with 2 additions and 2 deletions

View file

@ -301,7 +301,7 @@ gst_nv_base_enc_open (GstVideoEncoder * enc)
} }
if (gst_cuda_context_push (nvenc->cuda_ctx)) { if (gst_cuda_context_push (nvenc->cuda_ctx)) {
cuda_ret = CuStreamCreate (&nvenc->cuda_stream, CU_STREAM_NON_BLOCKING); cuda_ret = CuStreamCreate (&nvenc->cuda_stream, CU_STREAM_DEFAULT);
if (!gst_cuda_result (cuda_ret)) { if (!gst_cuda_result (cuda_ret)) {
GST_WARNING_OBJECT (nvenc, GST_WARNING_OBJECT (nvenc,
"Could not create cuda stream, will use default stream"); "Could not create cuda stream, will use default stream");

View file

@ -627,7 +627,7 @@ gst_nvdec_open (GstVideoDecoder * decoder)
} }
if (gst_cuda_context_push (nvdec->cuda_ctx)) { if (gst_cuda_context_push (nvdec->cuda_ctx)) {
cuda_ret = CuStreamCreate (&nvdec->cuda_stream, CU_STREAM_NON_BLOCKING); cuda_ret = CuStreamCreate (&nvdec->cuda_stream, CU_STREAM_DEFAULT);
if (!gst_cuda_result (cuda_ret)) { if (!gst_cuda_result (cuda_ret)) {
GST_WARNING_OBJECT (nvdec, GST_WARNING_OBJECT (nvdec,
"Could not create cuda stream, will use default stream"); "Could not create cuda stream, will use default stream");