Bug 1263251: Calculate AudioTrackPresent() correctly in MediaStreamGraph r=padenot

MozReview-Commit-ID: CFrdDkMUqGP
This commit is contained in:
Randell Jesup 2016-04-08 14:54:00 -04:00
Родитель e75c590407
Коммит fdb1a04f38
1 изменённых файлов: 1 добавлений и 7 удалений

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

@ -420,9 +420,6 @@ namespace {
bool
MediaStreamGraphImpl::AudioTrackPresent(bool& aNeedsAEC)
{
#ifdef MOZ_WEBRTC
bool shouldAEC = false;
#endif
bool audioTrackPresent = false;
for (uint32_t i = 0; i < mStreams.Length() && audioTrackPresent == false; ++i) {
MediaStream* stream = mStreams[i];
@ -458,13 +455,10 @@ MediaStreamGraphImpl::AudioTrackPresent(bool& aNeedsAEC)
NS_WARNING("No audio tracks, but full-duplex audio is enabled!!!!!");
audioTrackPresent = true;
#ifdef MOZ_WEBRTC
shouldAEC = true;
aNeedsAEC = true;
#endif
}
#ifdef MOZ_WEBRTC
aNeedsAEC = shouldAEC;
#endif
return audioTrackPresent;
}