Bug 1444479 - P5. Let AudioSink deal with unknown layout. r=padenot

MozReview-Commit-ID: F31zNl5o9n1
This commit is contained in:
Jean-Yves Avenard 2018-03-16 16:49:55 +01:00
Родитель adbf3514c6
Коммит f15eea87d5
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -403,9 +403,9 @@ AudioSink::NotifyAudioNeeded()
mOutputChannels == data->mChannels
? inputLayout
: AudioConfig::ChannelLayout(mOutputChannels);
mConverter =
MakeUnique<AudioConverter>(AudioConfig(inputLayout, data->mRate),
AudioConfig(outputLayout, mOutputRate));
mConverter = MakeUnique<AudioConverter>(
AudioConfig(inputLayout, data->mChannels, data->mRate),
AudioConfig(outputLayout, mOutputChannels, mOutputRate));
}
// See if there's a gap in the audio. If there is, push silence into the