Loading services/audioflinger/Tracks.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -1571,9 +1571,11 @@ status_t AudioFlinger::PlaybackThread::PatchTrack::obtainBuffer(Proxy::Buffer* b status_t status = NO_ERROR; static const int32_t kMaxTries = 5; int32_t tryCounter = kMaxTries; const size_t originalFrameCount = buffer->mFrameCount; do { if (status == NOT_ENOUGH_DATA) { restartIfDisabled(); buffer->mFrameCount = originalFrameCount; // cleared on error, must be restored. } status = mProxy->obtainBuffer(buffer, timeOut); } while ((status == NOT_ENOUGH_DATA) && (tryCounter-- > 0)); Loading Loading
services/audioflinger/Tracks.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -1571,9 +1571,11 @@ status_t AudioFlinger::PlaybackThread::PatchTrack::obtainBuffer(Proxy::Buffer* b status_t status = NO_ERROR; static const int32_t kMaxTries = 5; int32_t tryCounter = kMaxTries; const size_t originalFrameCount = buffer->mFrameCount; do { if (status == NOT_ENOUGH_DATA) { restartIfDisabled(); buffer->mFrameCount = originalFrameCount; // cleared on error, must be restored. } status = mProxy->obtainBuffer(buffer, timeOut); } while ((status == NOT_ENOUGH_DATA) && (tryCounter-- > 0)); Loading