Bug 1339230 - part2 : should be non-audible when media is suspended. r=baku

MozReview-Commit-ID: GtktbXEpuUU
This commit is contained in:
Alastor Wu
2017-02-24 17:15:22 +08:00
parent 7a9ba7af16
commit d91f6f9f1f

View File

@@ -1010,6 +1010,11 @@ private:
return AudioChannelService::AudibleState::eMaybeAudible;
}
// Media is suspended.
if (mSuspended != nsISuspendedTypes::NONE_SUSPENDED) {
return AudioChannelService::AudibleState::eNotAudible;
}
return AudioChannelService::AudibleState::eAudible;
}