mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
55db6413d7
commit
eab564d857
2 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ gst_nv_base_enc_open (GstVideoEncoder * enc)
|
|||
}
|
||||
|
||||
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)) {
|
||||
GST_WARNING_OBJECT (nvenc,
|
||||
"Could not create cuda stream, will use default stream");
|
||||
|
|
|
@ -627,7 +627,7 @@ gst_nvdec_open (GstVideoDecoder * decoder)
|
|||
}
|
||||
|
||||
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)) {
|
||||
GST_WARNING_OBJECT (nvdec,
|
||||
"Could not create cuda stream, will use default stream");
|
||||
|
|
Loading…
Reference in a new issue