[vlc-commits] mmal/vout: Use cached framerate for phase adjust

Julian Scheel git at videolan.org
Tue Jan 20 07:08:07 CET 2015


vlc | branch: master | Julian Scheel <julian at jusst.de> | Mon Jan 19 11:30:28 2015 +0100| [39c2f78d1db052305785f583791caf2d772c7e3c] | committer: Rémi Denis-Courmont

mmal/vout: Use cached framerate for phase adjust

The framerate stored in vd->source is not reliable in any case. Instead we use
the internally cached framerate which is updated from the actual pictures
which are rendered.

Signed-off-by: Julian Scheel <julian at jusst.de>
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=39c2f78d1db052305785f583791caf2d772c7e3c
---

 modules/hw/mmal/vout.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c
index 0e67525..7513ecf 100644
--- a/modules/hw/mmal/vout.c
+++ b/modules/hw/mmal/vout.c
@@ -957,8 +957,8 @@ static void maintain_phase_sync(vout_display_t *vd)
         .hdr = { MMAL_PARAMETER_VIDEO_RENDER_STATS, sizeof(render_stats) },
     };
     int32_t frame_duration = 1000000 /
-        ((double)vd->source.i_frame_rate /
-        vd->source.i_frame_rate_base);
+        ((double)vd->sys->i_frame_rate /
+        vd->sys->i_frame_rate_base);
     vout_display_sys_t *sys = vd->sys;
     int32_t phase_offset;
     MMAL_STATUS_T status;



More information about the vlc-commits mailing list