Commit d085e5ba authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e80df2d2
...@@ -416,8 +416,8 @@ static GstCaps *amt_to_gst_caps_video(const AM_MEDIA_TYPE *mt) ...@@ -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. */ /* Clear some fields that shouldn't prevent us from connecting. */
for (i = 0; i < gst_caps_get_size(caps); ++i) for (i = 0; i < gst_caps_get_size(caps); ++i)
{ {
gst_structure_remove_field(gst_caps_get_structure(caps, i), "framerate"); gst_structure_remove_fields(gst_caps_get_structure(caps, i),
gst_structure_remove_field(gst_caps_get_structure(caps, i), "pixel-aspect-ratio"); "framerate", "pixel-aspect-ratio", "colorimetry", "chroma-site", NULL);
} }
} }
return caps; return caps;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment