Bug 818220 - SetMutedInternal must be called at anytime

This commit is contained in:
Andrea Marchesini 2012-12-04 13:51:13 -08:00
parent 8df2ff45a4
commit 75dc7a8581

View File

@ -3534,13 +3534,13 @@ nsresult nsHTMLMediaElement::UpdateChannelMuteState()
// We have to mute this channel:
if (mute && !mChannelMuted) {
mChannelMuted = true;
SetMutedInternal(mMuted);
DispatchAsyncEvent(NS_LITERAL_STRING("mozinterruptbegin"));
} else if (!mute && mChannelMuted) {
mChannelMuted = false;
SetMutedInternal(mMuted);
DispatchAsyncEvent(NS_LITERAL_STRING("mozinterruptend"));
}
SetMutedInternal(mMuted);
#endif
return NS_OK;