mirror of https://github.com/mpv-player/mpv
osc: fix possible race condition in right timecode
This commit is contained in:
parent
eafc273d2c
commit
b39a7fddb5
|
@ -1755,8 +1755,7 @@ function osc_init()
|
|||
-- tc_right (total/remaining time)
|
||||
ne = new_element("tc_right", "button")
|
||||
|
||||
ne.visible = (not (mp.get_property("duration") == nil))
|
||||
and (mp.get_property_number("duration") > 0)
|
||||
ne.visible = (mp.get_property_number("duration", 0) > 0)
|
||||
ne.content = function ()
|
||||
if (state.rightTC_trem) then
|
||||
if state.tc_ms then
|
||||
|
|
Loading…
Reference in New Issue