From 8479449d14e597f31add16930d257910515420de Mon Sep 17 00:00:00 2001 From: fatalis Date: Sun, 13 May 2018 09:32:26 -0500 Subject: osc: fix accidentally skipping files when seeking with slider When seeking near the end of the file and the next file loads, seeking continues on the next file at the same position and then immediately the file after that. This patch stops slider seeking when a new file is loaded, which is the standard behavior of many other players. --- player/lua/osc.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index d79891b8c0..de492152b1 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -1538,6 +1538,8 @@ function osc_init() end osc_param.playresx = osc_param.playresy * osc_param.display_aspect + -- stop seeking with the slider to prevent skipping files + state.active_element = nil -- cgit v1.2.3