RTP: Add log throttle for "no data".

Change-Id: I14d9886a40fa780514cbc6c5bac6fb2a670f55f4
This commit is contained in:
repo sync
2010-09-23 05:46:01 +08:00
parent 4033a67d0e
commit 7a69aeffda

View File

@@ -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;
}