fix otherAgent iterator in audio-mixer main

This commit is contained in:
Stephen Birarda 2013-04-26 10:50:19 -07:00
parent 4916da39fa
commit f18942d016

View file

@ -126,7 +126,7 @@ void *sendBuffer(void *args)
int16_t clientMix[BUFFER_LENGTH_SAMPLES_PER_CHANNEL * 2] = {};
for (AgentList::iterator otherAgent = agentList->begin(); agent != agentList->end(); agent++) {
for (AgentList::iterator otherAgent = agentList->begin(); otherAgent != agentList->end(); otherAgent++) {
if (otherAgent != agent || ( otherAgent == agent && agentWantsLoopback)) {
AudioRingBuffer* otherAgentBuffer = (AudioRingBuffer*) otherAgent->getLinkedData();