From 3a44d14ac8b227975dd58118f674e6a08f4fa3be Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 14 Jun 2022 03:15:42 +0900 Subject: [PATCH] d3d11convert: Don't passthrough if colorimetry conversion is required Different input/output colorimetry requires conversion Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11convert.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11convert.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11convert.cpp index 01954524ed..1ebc5a3efe 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11convert.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11convert.cpp @@ -1778,7 +1778,9 @@ gst_d3d11_base_convert_set_info (GstD3D11BaseFilter * filter, if (in_info->width == out_info->width && in_info->height == out_info->height && in_info->finfo == out_info->finfo && self->borders_w == 0 && - self->borders_h == 0) { + self->borders_h == 0 && + gst_video_colorimetry_is_equal (&in_info->colorimetry, + &out_info->colorimetry)) { gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (filter), TRUE); return TRUE; } else {