mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
nvdecoder: Use own CUDA stream in GL output path
Use the same CUDA stream passed to CuvidMapVideoFrame() Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3611>
This commit is contained in:
parent
cd78cbac86
commit
14062c06a6
1 changed files with 2 additions and 2 deletions
|
@ -667,13 +667,13 @@ gst_nv_decoder_copy_frame_to_gl_internal (GstGLContext * context,
|
||||||
copy_params.dstDevice = dst_ptr;
|
copy_params.dstDevice = dst_ptr;
|
||||||
copy_params.Height = GST_VIDEO_INFO_COMP_HEIGHT (info, i);
|
copy_params.Height = GST_VIDEO_INFO_COMP_HEIGHT (info, i);
|
||||||
|
|
||||||
if (!gst_cuda_result (CuMemcpy2DAsync (©_params, NULL))) {
|
if (!gst_cuda_result (CuMemcpy2DAsync (©_params, self->cuda_stream))) {
|
||||||
GST_WARNING_OBJECT (self, "memcpy to mapped array failed");
|
GST_WARNING_OBJECT (self, "memcpy to mapped array failed");
|
||||||
data->ret = FALSE;
|
data->ret = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_cuda_result (CuStreamSynchronize (NULL));
|
gst_cuda_result (CuStreamSynchronize (self->cuda_stream));
|
||||||
|
|
||||||
unmap_video_frame:
|
unmap_video_frame:
|
||||||
for (i = 0; i < num_resources; i++) {
|
for (i = 0; i < num_resources; i++) {
|
||||||
|
|
Loading…
Reference in a new issue