summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorpavelxdd <pavel.otchertsov@gmail.com>2016-12-04 11:10:58 +0300
committerwm4 <wm4@nowhere>2016-12-04 13:18:19 +0100
commitf53b2952ebfc109da9cedba4b26323222c1a7500 (patch)
tree4cfbab4206cc6204ee32e16f3c44075853d79d76 /player/lua
parent5544ffecd92d898715b95f2d1913db3586eed855 (diff)
downloadmpv-f53b2952ebfc109da9cedba4b26323222c1a7500.tar.bz2
mpv-f53b2952ebfc109da9cedba4b26323222c1a7500.tar.xz
osc: replace length property with duration
Length property is deprecated and no longer works. This fixes a bug when the total file duration wasn't visible if the option to display milliseconds was activated.
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/osc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 63d0740c6a..4ad6929800 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1766,7 +1766,7 @@ function osc_init()
end
else
if state.tc_ms then
- return (mp.get_property_osd("length/full"))
+ return (mp.get_property_osd("duration/full"))
else
return (mp.get_property_osd("duration"))
end