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:
parent
5544ffecd9
commit
f53b2952eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user