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.
This commit is contained in:
fatalis 2018-05-13 09:32:26 -05:00 committed by Jan Ekström
parent 36cc33ff5a
commit 8479449d14
1 changed files with 2 additions and 0 deletions

View File

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