Bug 1299324: return error if an audio channel is already open until multi-mic support is done r=jib

This commit is contained in:
Randell Jesup 2016-10-06 21:40:44 -04:00
Родитель 4d39958e79
Коммит 7b209b91b2
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -298,6 +298,10 @@ MediaEngineWebRTCMicrophoneSource::UpdateSingleSource(
LOG(("Audio engine is not initalized"));
return NS_ERROR_FAILURE;
}
} else {
// Until we fix (or wallpaper) support for multiple mic input
// (Bug 1238038) fail allocation for a second device
return NS_ERROR_FAILURE;
}
if (!AllocChannel()) {
LOG(("Audio device is not initalized"));