[vlc-commits] mmal/vout: Use framerate from pictures
Julian Scheel
git at videolan.org
Fri Oct 10 10:43:44 CEST 2014
vlc | branch: master | Julian Scheel <julian at jusst.de> | Fri Oct 10 10:39:14 2014 +0200| [f7034507a3ed7255e9a5b98a3f2c923b3e05c6a4] | committer: 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: Julian Scheel <julian at jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7034507a3ed7255e9a5b98a3f2c923b3e05c6a4
---
modules/hw/mmal/vout.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index a79ba33..2c4d1a0 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -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;
More information about the vlc-commits
mailing list