mirror of
https://github.com/mpv-player/mpv
synced 2024-10-02 16:25:33 +02:00
osc: check for availabillity of percent-pos instead of length
... to decide wether the seekbar should be enabled or not.
This commit is contained in:
parent
5655038a95
commit
195e087086
@ -932,7 +932,7 @@ function osc_init()
|
||||
end
|
||||
|
||||
local posF = function ()
|
||||
if mp.property_get("length") == nil then
|
||||
if mp.property_get("percent-pos") == nil then
|
||||
return nil
|
||||
else
|
||||
return tonumber(mp.property_get("percent-pos"))
|
||||
@ -952,7 +952,7 @@ function osc_init()
|
||||
local metainfo = {}
|
||||
|
||||
|
||||
metainfo.enabled = (not (mp.property_get("length") == nil)) and (tonumber(mp.property_get("length")) > 0)
|
||||
metainfo.enabled = not (mp.property_get("percent-pos") == nil)
|
||||
metainfo.styledown = false
|
||||
metainfo.slider = {}
|
||||
metainfo.slider.border = 1
|
||||
|
Loading…
Reference in New Issue
Block a user