Commit 92c91c4e authored by Alfred Agrell's avatar Alfred Agrell Committed by Alexandre Julliard

winegstreamer: Include the framerate when converting video format to GstCaps.

parent ced2b4c6
...@@ -477,6 +477,11 @@ static GstCaps *wg_format_to_caps_video(const struct wg_format *format) ...@@ -477,6 +477,11 @@ static GstCaps *wg_format_to_caps_video(const struct wg_format *format)
return NULL; return NULL;
gst_video_info_set_format(&info, video_format, format->u.video.width, abs(format->u.video.height)); 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))) if ((caps = gst_video_info_to_caps(&info)))
{ {
for (i = 0; i < gst_caps_get_size(caps); ++i) for (i = 0; i < gst_caps_get_size(caps); ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment