From 2888af4974f757f2bebab0b1cb12c2f39a9d25c7 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 2 Aug 2020 20:34:34 +0200 Subject: [PATCH] small fix --- src/server.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 3060bad2..bb3e73f1 100755 --- a/src/server.cpp +++ b/src/server.cpp @@ -995,7 +995,7 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE for ( int i = 0; i < iNumClients; i++ ) { int iClientFrameSizeSamples = 0; // initialize to avoid a compiler warning - OpusCustomEncoder* pCurOpusEncoder; + OpusCustomEncoder* pCurOpusEncoder = nullptr; // get actual ID of current channel const int iCurChanID = vecChanIDsCurConChan[i]; @@ -1033,13 +1033,9 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE pCurOpusEncoder = Opus64EncoderStereo[iCurChanID]; } } - else - { - pCurOpusEncoder = nullptr; - } - // generate a separate mix for each channel - // actual processing of audio data -> mix + // generate a separate mix for each channel, OPUS encode the + // audio data and transmit the network packet MixEncodeTransmitData ( vecvecsData, vecvecdGains[i], vecvecdPannings[i],