Bug 1447982 - Move mic source allocation logging so it actually covers allocations. r=padenot

MozReview-Commit-ID: Ipq5vqCfvgi

--HG--
extra : rebase_source : 9501f3ce7eee7e6cbf5bc839e4f7581be5a5a543
This commit is contained in:
Andreas Pehrson 2018-03-26 11:03:58 +02:00
Родитель bd47efdaa2
Коммит 6c20c3f1cf
1 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -494,6 +494,12 @@ MediaEngineWebRTCMicrophoneSource::UpdateSingleSource(
return NS_ERROR_FAILURE;
}
}
break;
default:
LOG(("Audio device %d in ignored state %d", mCapIndex, mState));
break;
}
if (MOZ_LOG_TEST(GetMediaManagerLog(), LogLevel::Debug)) {
if (mAllocations.IsEmpty()) {
@ -502,12 +508,6 @@ MediaEngineWebRTCMicrophoneSource::UpdateSingleSource(
LOG(("Audio device %d allocated shared", mCapIndex));
}
}
break;
default:
LOG(("Audio device %d in ignored state %d", mCapIndex, mState));
break;
}
if (sChannelsOpen > 0) {
UpdateAGCSettingsIfNeeded(prefs.mAgcOn, static_cast<AgcModes>(prefs.mAgc));