From f53b2952ebfc109da9cedba4b26323222c1a7500 Mon Sep 17 00:00:00 2001 From: pavelxdd Date: Sun, 4 Dec 2016 11:10:58 +0300 Subject: 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. --- player/lua/osc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3