From d085e5ba72883928bc193ee41955064d6069261d Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Thu, 18 Jun 2020 21:50:41 -0500 Subject: [PATCH] winegstreamer: Clear the "colorimetry" and "chroma-site" fields in amt_to_gst_caps_video(). These fields don't prevent us from connecting, but they may force videoconvert to do an expensive conversion where not necessary. Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/winegstreamer/gstdemux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c index b9c91245f82..75ddb3082e6 100644 --- a/dlls/winegstreamer/gstdemux.c +++ b/dlls/winegstreamer/gstdemux.c @@ -416,8 +416,8 @@ static GstCaps *amt_to_gst_caps_video(const AM_MEDIA_TYPE *mt) /* Clear some fields that shouldn't prevent us from connecting. */ for (i = 0; i < gst_caps_get_size(caps); ++i) { - gst_structure_remove_field(gst_caps_get_structure(caps, i), "framerate"); - gst_structure_remove_field(gst_caps_get_structure(caps, i), "pixel-aspect-ratio"); + gst_structure_remove_fields(gst_caps_get_structure(caps, i), + "framerate", "pixel-aspect-ratio", "colorimetry", "chroma-site", NULL); } } return caps;