Commit 39c2f78d authored by Julian Scheel's avatar Julian Scheel Committed by 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: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 23ac1163
...@@ -957,8 +957,8 @@ static void maintain_phase_sync(vout_display_t *vd) ...@@ -957,8 +957,8 @@ static void maintain_phase_sync(vout_display_t *vd)
.hdr = { MMAL_PARAMETER_VIDEO_RENDER_STATS, sizeof(render_stats) }, .hdr = { MMAL_PARAMETER_VIDEO_RENDER_STATS, sizeof(render_stats) },
}; };
int32_t frame_duration = 1000000 / int32_t frame_duration = 1000000 /
((double)vd->source.i_frame_rate / ((double)vd->sys->i_frame_rate /
vd->source.i_frame_rate_base); vd->sys->i_frame_rate_base);
vout_display_sys_t *sys = vd->sys; vout_display_sys_t *sys = vd->sys;
int32_t phase_offset; int32_t phase_offset;
MMAL_STATUS_T status; MMAL_STATUS_T status;
......
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