Alfred Agrell : winegstreamer: Include the framerate when converting video format to GstCaps.
Module: wine Branch: master Commit: 92c91c4e93a80b7d89164ab1ec70927e42ba939b URL: https://gitlab.winehq.org/wine/wine/-/commit/92c91c4e93a80b7d89164ab1ec70927... Author: Alfred Agrell <floating(a)muncher.se> Date: Fri Oct 20 01:39:56 2023 +0200 winegstreamer: Include the framerate when converting video format to GstCaps. --- dlls/winegstreamer/wg_format.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/winegstreamer/wg_format.c b/dlls/winegstreamer/wg_format.c index 9c6e49afcc7..743f674bcd6 100644 --- a/dlls/winegstreamer/wg_format.c +++ b/dlls/winegstreamer/wg_format.c @@ -477,6 +477,11 @@ static GstCaps *wg_format_to_caps_video(const struct wg_format *format) return NULL; gst_video_info_set_format(&info, video_format, format->u.video.width, abs(format->u.video.height)); + if (format->u.video.fps_d) + { + info.fps_n = format->u.video.fps_n; + info.fps_d = format->u.video.fps_d; + } if ((caps = gst_video_info_to_caps(&info))) { for (i = 0; i < gst_caps_get_size(caps); ++i)
participants (1)
-
Alexandre Julliard