From b39a7fddb556ec9b56eb1a66b5f333b884d0b4d8 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Mon, 21 Nov 2016 18:20:53 +0000 Subject: [PATCH] osc: fix possible race condition in right timecode --- player/lua/osc.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 643f32faaf..53860d355d 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -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