winegstreamer: Do not compare FPS in wg_format_compare().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50667
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-02-14 15:26:29 -06:00 committed by Alexandre Julliard
parent f98722fe3b
commit 408c178d11
1 changed files with 2 additions and 2 deletions

View File

@ -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);