0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

stats: don't show video/audio-speed-correction when 0

This used to be the case, I'm not sure when it changed.
The current way of 'hiding' it in case of 0 is not exactly
good and relies on the OSD representation. It could be done
better by querying the video-sync-active property but that would
require querying yet one more thing...
This commit is contained in:
Julian 2016-07-14 14:50:54 +09:00 committed by wm4
parent aace3e4cde
commit 7dcebb016c

View File

@ -340,7 +340,7 @@ local function add_video(s)
append_property(s, "estimated-vf-fps",
{prefix="FPS:", suffix=" (estimated)"})
end
if append_property(s, "video-speed-correction", {prefix="DS:"}) then
if append_property(s, "video-speed-correction", {prefix="DS:"}, {["+0.00000%"]=true}) then
append_property(s, "audio-speed-correction",
{prefix="/", nl="", indent=" ", prefix_sep=" ", no_prefix_markup=true})
end