Zebediah Figura : winegstreamer: Also clear the pixel-aspect-ratio field in amt_to_gst_caps_video().
Alexandre Julliard
julliard at winehq.org
Thu Mar 26 16:27:26 CDT 2020
Module: wine
Branch: master
Commit: 5814d193730766f4c0a34017a7b8594573612917
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5814d193730766f4c0a34017a7b8594573612917
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Mar 26 12:04:31 2020 -0500
winegstreamer: Also clear the pixel-aspect-ratio field in amt_to_gst_caps_video().
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 412aab2a3b..b489c36f96 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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;
}
More information about the wine-cvs
mailing list