Merge pull request #14492 from Atlante45/fix/audio-mixer-crash-master

Fix audio mixer crash
This commit is contained in:
Clément Brisset 2018-11-30 17:03:36 -08:00 committed by GitHub
commit 0dac8580ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,6 +337,13 @@ void AudioMixerClientData::removeAgentAvatarAudioStream() {
if (it != _audioStreams.end()) {
_audioStreams.erase(it);
// Clear mixing structures so that they get recreated with up to date
// data if the stream comes back
setHasReceivedFirstMix(false);
_streams.skipped.clear();
_streams.inactive.clear();
_streams.active.clear();
}
}