Bug 1321497 - correct the logic of resuming from AudioChannel; r=alwu,jwwang

MozReview-Commit-ID: JxeqdzADlrU
This commit is contained in:
Kaku Kuo
2016-12-01 16:30:18 +08:00
parent 6b91b59cf0
commit ad9fdaf9ff

View File

@@ -792,7 +792,7 @@ private:
void void
Resume() Resume()
{ {
if (!IsSuspended() && mOwner->Paused()) { if (!IsSuspended()) {
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug, MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, ResumeFromAudioChannel, " ("HTMLMediaElement::AudioChannelAgentCallback, ResumeFromAudioChannel, "
"this = %p, Error : resume without suspended!\n", this)); "this = %p, Error : resume without suspended!\n", this));