osc: fix possible race condition in right timecode

This commit is contained in:
Ricardo Constantino 2016-11-21 18:20:53 +00:00
parent eafc273d2c
commit b39a7fddb5
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531
1 changed files with 1 additions and 2 deletions

View File

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