Remove ao-mute check

This commit is contained in:
blank X 2022-07-02 15:34:00 +07:00
parent 4dec5a3526
commit c18fbe74d3
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ function observePlaybackTime(_, current_pos)
mp.set_property_number("playback-time", segment.segment[2])
current_pos = segment.segment[2]
elseif segment.actionType == "mute" then
-- if ao-mute or mute is false, then it's not muted, which causes it to be muted
local caused_mute = (mp.get_property_bool("ao-mute") or mp.get_property_bool("mute")) == false
-- if mute is false, then it's not muted, which causes it to be muted
local caused_mute = mp.get_property_bool("mute") == false
-- if subs are visible, they'll be hidden
local caused_hidden_subs = mp.get_property_bool("sub-visibility") == true
if (caused_mute or caused_hidden_subs) and (video_data.current_mute_segment == nil