Commit 5814d193 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Also clear the pixel-aspect-ratio field in amt_to_gst_caps_video().

parent 120505ed
......@@ -407,11 +407,12 @@ static GstCaps *amt_to_gst_caps_video(const AM_MEDIA_TYPE *mt)
gst_video_info_set_format(&info, format, vih->bmiHeader.biWidth, vih->bmiHeader.biHeight);
if ((caps = gst_video_info_to_caps(&info)))
{
/* Clear the framerate; we don't actually care about it. (Yes,
* VIDEOINFOHEADER has an AvgTimePerFrame field, but that shouldn't
* matter for checking compatible caps.) */
/* 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");
}
}
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