d3d11convert: Don't passthrough if colorimetry conversion is required

Different input/output colorimetry requires conversion

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2581>
This commit is contained in:
Seungha Yang 2022-06-14 03:15:42 +09:00
parent f3f905b491
commit 3a44d14ac8

View file

@ -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 if (in_info->width == out_info->width && in_info->height == out_info->height
&& in_info->finfo == out_info->finfo && self->borders_w == 0 && && 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); gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (filter), TRUE);
return TRUE; return TRUE;
} else { } else {