summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfatalis <fatalis@fatalis.pw>2018-05-13 09:32:26 -0500
committerJan Ekström <jeebjp@gmail.com>2018-06-04 00:14:59 +0300
commit8479449d14e597f31add16930d257910515420de (patch)
tree4410ded032b02f886c2a002b3ddddc6460a4ed43
parent36cc33ff5ab599f8e2e0d02161f7942cd7377dcb (diff)
downloadmpv-8479449d14e597f31add16930d257910515420de.tar.bz2
mpv-8479449d14e597f31add16930d257910515420de.tar.xz
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.
-rw-r--r--player/lua/osc.lua2
1 files changed, 2 insertions, 0 deletions
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