[vlc-devel] [PATCH 09/14] mmal/vout: Use cached framerate for phase adjust
Julian Scheel
julian at jusst.de
Mon Jan 19 11:30:28 CET 2015
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>
---
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;
--
2.2.1
More information about the vlc-devel
mailing list