]> git.sesse.net Git - vlc/commit
mmal/vout: Configure latency target
authorJulian Scheel <julian@jusst.de>
Thu, 9 Oct 2014 10:08:56 +0000 (12:08 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Oct 2014 10:55:46 +0000 (12:55 +0200)
commit28c484c277369dc14e2bffd2bee846765839e654
tree1819adbae0d6e5bdfcdc7eeb18697f9f163e99d5
parent563660302175edd4d00a2ef96993c7021253c72b
mmal/vout: Configure latency target

The mmal video_render element allows to configure a latency target. Although
the parameter is named AUDIO_LATENCY_TARGET it is not actually related to
audio but synchronizes frame draws with hdmi vsync. It tries to match the hdmi
vsync rate to the picture render rate by slightly varying the hdmi pixel
clock. This makes only sense if the actual display refresh rate matches the
video frame rate, so that only minimal drift compensation is required. Thus
enable it only when mmal-adjust-refreshrate is activated.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/hw/mmal/vout.c