Browse Source

nv-filters: Fix CudaStream used in Video effects

During the mapping and unmapping of resources, the CudaStream was not
always consistent.
This fixes the issue.
Thanks to Stephan from NVIDIA Dev support for noticing the mismatch.

Signed-off-by: pkv <[email protected]>
(cherry picked from commit 3402f6c7d04a598a9f3087ec9bc3759019be9dc0)
pkv 10 tháng trước cách đây
mục cha
commit
347d67d3c6

+ 1 - 1
plugins/nv-filters/nvidia-videofx-filter.c

@@ -634,7 +634,7 @@ static bool process_texture(struct nvvfx_data *filter)
 	}
 	}
 
 
 	/* 2. Convert to BGR. */
 	/* 2. Convert to BGR. */
-	vfxErr = NvCVImage_Transfer(filter->src_img, filter->BGR_src_img, 1.0f, filter->stream_blur, filter->stage);
+	vfxErr = NvCVImage_Transfer(filter->src_img, filter->BGR_src_img, 1.0f, process_stream, filter->stage);
 	if (vfxErr != NVCV_SUCCESS) {
 	if (vfxErr != NVCV_SUCCESS) {
 		const char *errString = NvCV_GetErrorStringFromCode(vfxErr);
 		const char *errString = NvCV_GetErrorStringFromCode(vfxErr);
 		error("Error converting src to BGR img; error %i: %s", vfxErr, errString);
 		error("Error converting src to BGR img; error %i: %s", vfxErr, errString);