[PATCH] winegstreamer: Also clear the pixel-aspect-ratio field in amt_to_gst_caps_video().
Zebediah Figura
z.figura12 at gmail.com
Thu Mar 26 12:04:31 CDT 2020
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/winegstreamer/gstdemux.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 138e7cad8c5..2d9efe8eada 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -409,11 +409,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;
}
--
2.25.1
More information about the wine-devel
mailing list