Commit f7034507 authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

mmal/vout: Use framerate from pictures

The framerate of pictures might change without a change of the general input
format information. So to ensure that we always handle the correct refreshrate
we compare the refreshrate of each picture with the currently configured one.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 74512836
......@@ -530,6 +530,11 @@ static void vd_display(vout_display_t *vd, picture_t *picture,
MMAL_BUFFER_HEADER_T *buffer = pic_sys->buffer;
MMAL_STATUS_T status;
if (picture->format.i_frame_rate != vd->fmt.i_frame_rate ||
picture->format.i_frame_rate_base != vd->fmt.i_frame_rate_base) {
configure_display(vd, NULL, &picture->format);
}
if (!pic_sys->displayed || !sys->opaque) {
buffer->cmd = 0;
buffer->length = sys->input->buffer_size;
......
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