mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 21:03:17 +02:00
Merge pull request #14492 from Atlante45/fix/audio-mixer-crash-master
Fix audio mixer crash
This commit is contained in:
commit
0dac8580ee
1 changed files with 7 additions and 0 deletions
|
@ -337,6 +337,13 @@ void AudioMixerClientData::removeAgentAvatarAudioStream() {
|
||||||
|
|
||||||
if (it != _audioStreams.end()) {
|
if (it != _audioStreams.end()) {
|
||||||
_audioStreams.erase(it);
|
_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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue