summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2016-07-14 14:50:54 +0900
committerwm4 <wm4@nowhere>2017-10-09 20:40:31 +0200
commit7dcebb016c24aaaf103c4a18c9b67cfe0a1007f6 (patch)
tree3f9c9533f451eff9cebff83c90a6192a0e74cb7a /player
parentaace3e4cdeb52d47455796892ff29363b3586af3 (diff)
downloadmpv-7dcebb016c24aaaf103c4a18c9b67cfe0a1007f6.tar.bz2
mpv-7dcebb016c24aaaf103c4a18c9b67cfe0a1007f6.tar.xz
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...
Diffstat (limited to 'player')
-rw-r--r--player/lua/stats.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index f8afc0806d..03fc0107f7 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -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