fix set_property aid cannot be set to nil
If you attempt to set_property("aid", nil) the script will throw an error.
This commit is contained in:
parent
4c237b17cf
commit
34b3ccefa1
|
@ -23,7 +23,7 @@ function restore_normalspeed()
|
||||||
if mp.get_property_native("video-sync") == "desync" then
|
if mp.get_property_native("video-sync") == "desync" then
|
||||||
mp.set_property("video-sync", "audio")
|
mp.set_property("video-sync", "audio")
|
||||||
end
|
end
|
||||||
if aid~=mp.get_property("aid") then mp.set_property("aid", aid) end
|
if (aid~=nil and aid~=mp.get_property("aid")) then mp.set_property("aid", aid) end
|
||||||
end
|
end
|
||||||
|
|
||||||
function check_should_speedup()
|
function check_should_speedup()
|
||||||
|
|
Loading…
Reference in New Issue