summaryrefslogtreecommitdiffstats
path: root/player/lua/osc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua/osc.lua')
-rw-r--r--player/lua/osc.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index ec219a1fe0..e7b027cfb7 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1960,8 +1960,11 @@ function osc_init()
local seekto = get_slider_value(element)
if (element.state.lastseek == nil) or
(not (element.state.lastseek == seekto)) then
- mp.commandv("seek", seekto, "absolute-percent",
- user_opts.seekbarkeyframes and "keyframes" or "exact")
+ local flags = "absolute-percent"
+ if not user_opts.seekbarkeyframes then
+ flags = flags .. "+exact"
+ end
+ mp.commandv("seek", seekto, flags)
element.state.lastseek = seekto
end