Commit db42a25a authored by Lutz Vieweg's avatar Lutz Vieweg

* fixed issue #13 where the...

* fixed issue #13 where the error "Command subprocess: argument args has incompatible type" was occuring after some recent mpv change. Apparently, arguments passed in the [args] array to util.subprocess now must all be strings.
parent af6c335b
......@@ -296,8 +296,13 @@ function xrandr_set_rate()
p["args"][4] = "--mode"
p["args"][5] = xrandr_modes[output].mode
p["args"][6] = "--rate"
p["args"][7] = bfr
p["args"][7] = tostring(bfr)
local cmd_as_string = ""
for k, v in pairs(p["args"]) do
cmd_as_string = cmd_as_string .. v .. " "
end
mp.msg.log("debug", "executing as subprocess: \"" .. cmd_as_string .. "\"")
local res = utils.subprocess(p)
if (res["error"] ~= nil) then
......@@ -339,7 +344,7 @@ function xrandr_set_old_rate()
local old_rate = xrandr_modes[output].old_rate
if (old_rate == 0) then
if (old_rate == 0 or xrandr_previously_set[output] == nil ) then
mp.msg.log("v", "no previous frame rate known for output " .. output .. " - so no switching back.")
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