From 6ba1ee8d0ff539a79e4191901445802eda3dfbf4 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 2 Mar 2021 18:07:36 +0900 Subject: [PATCH] d3d11videoprocessor: Disable auto processing mode explicitly Don't allow auto processing (e.g., denoising), as it might result in unexpected output. Part-of: --- sys/d3d11/gstd3d11videoprocessor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/d3d11/gstd3d11videoprocessor.c b/sys/d3d11/gstd3d11videoprocessor.c index 380e5d25d8..4cf54af13a 100644 --- a/sys/d3d11/gstd3d11videoprocessor.c +++ b/sys/d3d11/gstd3d11videoprocessor.c @@ -130,6 +130,13 @@ gst_d3d11_video_processor_new (GstD3D11Device * device, guint in_width, } #endif + /* Setting up default options */ + gst_d3d11_device_lock (self->device); + /* We don't want auto processing by driver */ + ID3D11VideoContext_VideoProcessorSetStreamAutoProcessingMode + (self->video_context, self->processor, 0, FALSE); + gst_d3d11_device_unlock (self->device); + return self; fail: