1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-02 21:21:33 +00:00

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.
This commit is contained in:
pavelxdd 2016-12-04 11:10:58 +03:00 committed by wm4
parent 5544ffecd9
commit f53b2952eb

View File

@ -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