Commit 7f27aba7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Lua: fix number syntax error - unbreak RC interface

parent 837f0d29
...@@ -150,7 +150,7 @@ function seek(value) ...@@ -150,7 +150,7 @@ function seek(value)
if string.sub(value,-1) == "%" then if string.sub(value,-1) == "%" then
local number = us_tonumber(string.sub(value,1,-2)) local number = us_tonumber(string.sub(value,1,-2))
if number ~= nil then if number ~= nil then
local posPercent = number/100. local posPercent = number/100
if string.sub(value,1,1) == "+" or string.sub(value,1,1) == "-" then if string.sub(value,1,1) == "+" or string.sub(value,1,1) == "-" then
vlc.var.set(input,"position",vlc.var.get(input,"position") + posPercent) vlc.var.set(input,"position",vlc.var.get(input,"position") + posPercent)
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment