mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
Fix bad read access on shutdown
This commit is contained in:
parent
aa306c3450
commit
7160fca4f7
2 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ void AudioMixerSlavePool::processPackets(ConstIter begin, ConstIter end) {
|
||||||
|
|
||||||
void AudioMixerSlavePool::mix(ConstIter begin, ConstIter end, unsigned int frame, float throttlingRatio) {
|
void AudioMixerSlavePool::mix(ConstIter begin, ConstIter end, unsigned int frame, float throttlingRatio) {
|
||||||
_function = &AudioMixerSlave::mix;
|
_function = &AudioMixerSlave::mix;
|
||||||
_configure = [&](AudioMixerSlave& slave) {
|
_configure = [=](AudioMixerSlave& slave) {
|
||||||
slave.configureMix(_begin, _end, _frame, _throttlingRatio);
|
slave.configureMix(_begin, _end, _frame, _throttlingRatio);
|
||||||
};
|
};
|
||||||
_frame = frame;
|
_frame = frame;
|
||||||
|
|
|
@ -69,7 +69,7 @@ static AvatarMixerSlave slave;
|
||||||
|
|
||||||
void AvatarMixerSlavePool::processIncomingPackets(ConstIter begin, ConstIter end) {
|
void AvatarMixerSlavePool::processIncomingPackets(ConstIter begin, ConstIter end) {
|
||||||
_function = &AvatarMixerSlave::processIncomingPackets;
|
_function = &AvatarMixerSlave::processIncomingPackets;
|
||||||
_configure = [&](AvatarMixerSlave& slave) {
|
_configure = [=](AvatarMixerSlave& slave) {
|
||||||
slave.configure(begin, end);
|
slave.configure(begin, end);
|
||||||
};
|
};
|
||||||
run(begin, end);
|
run(begin, end);
|
||||||
|
@ -79,7 +79,7 @@ void AvatarMixerSlavePool::broadcastAvatarData(ConstIter begin, ConstIter end,
|
||||||
p_high_resolution_clock::time_point lastFrameTimestamp,
|
p_high_resolution_clock::time_point lastFrameTimestamp,
|
||||||
float maxKbpsPerNode, float throttlingRatio) {
|
float maxKbpsPerNode, float throttlingRatio) {
|
||||||
_function = &AvatarMixerSlave::broadcastAvatarData;
|
_function = &AvatarMixerSlave::broadcastAvatarData;
|
||||||
_configure = [&](AvatarMixerSlave& slave) {
|
_configure = [=](AvatarMixerSlave& slave) {
|
||||||
slave.configureBroadcast(begin, end, lastFrameTimestamp, maxKbpsPerNode, throttlingRatio);
|
slave.configureBroadcast(begin, end, lastFrameTimestamp, maxKbpsPerNode, throttlingRatio);
|
||||||
};
|
};
|
||||||
run(begin, end);
|
run(begin, end);
|
||||||
|
|
Loading…
Reference in a new issue