restore normal speed when no subtitles is selected

This commit is contained in:
zenyd 2017-09-30 18:14:00 +02:00
parent f480c14de9
commit d873898409
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function speed_transition(_, sub)
end
end
elseif state == 1 then
if sub ~= "" and sub ~= nil then
if sub ~= "" and sub ~= nil or not mp.get_property_native("sid") then
mp.unobserve_property(check_position)
restore_normalspeed()
state = 0