[PATCH] winegstreamer: Do not compare FPS in wg_format_compare().

Zebediah Figura z.figura12 at gmail.com
Sun Feb 14 15:26:29 CST 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50667
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winegstreamer/wg_parser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index 071694f77cc..5c8d5f56d86 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -307,10 +307,10 @@ static bool wg_format_compare(const struct wg_format *a, const struct wg_format
                     && a->u.audio.rate == b->u.audio.rate;
 
         case WG_MAJOR_TYPE_VIDEO:
+            /* Do not compare FPS. */
             return a->u.video.format == b->u.video.format
                     && a->u.video.width == b->u.video.width
-                    && a->u.video.height == b->u.video.height
-                    && a->u.video.fps_d * b->u.video.fps_n == a->u.video.fps_n * b->u.video.fps_d;
+                    && a->u.video.height == b->u.video.height;
     }
 
     assert(0);
-- 
2.30.0




More information about the wine-devel mailing list