Bug 1216417 - Make sure audio output streams are created after adding an audio output. r=baku,roc

This commit is contained in:
Andreas Pehrson 2015-10-29 13:18:38 +08:00
parent acd2c7ef05
commit a77b9df106

View File

@ -580,7 +580,8 @@ MediaStreamGraphImpl::CreateOrDestroyAudioStreams(MediaStream* aStream)
return;
}
if (!aStream->GetStreamBuffer().GetAndResetTracksDirty()) {
if (!aStream->GetStreamBuffer().GetAndResetTracksDirty() &&
!aStream->mAudioOutputStreams.IsEmpty()) {
return;
}