RTP: Add log throttle for "no data".
Change-Id: I14d9886a40fa780514cbc6c5bac6fb2a670f55f4
This commit is contained in:
@@ -104,6 +104,7 @@ private:
|
||||
int mSampleRate;
|
||||
int mSampleCount;
|
||||
int mInterval;
|
||||
int mLogThrottle;
|
||||
|
||||
int16_t *mBuffer;
|
||||
int mBufferMask;
|
||||
@@ -278,7 +279,10 @@ void AudioStream::encode(int tick, AudioStream *chain)
|
||||
chain = chain->mNext;
|
||||
}
|
||||
if (!mixed) {
|
||||
LOGD("stream[%d] no data", mSocket);
|
||||
if ((mTick ^ mLogThrottle) >> 10) {
|
||||
mLogThrottle = mTick;
|
||||
LOGD("stream[%d] no data", mSocket);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user