Remove redundant test (processOneChunk checks this and returns true if accumulator empty when draining)

This commit is contained in:
Chris Cannam
2023-06-08 09:44:09 +01:00
parent d97551834f
commit 2949996cf6

View File

@@ -1206,7 +1206,7 @@ R2Stretcher::available() const
// ^^^ yes, we do sometimes -- e.g. when fed a very short file // ^^^ yes, we do sometimes -- e.g. when fed a very short file
if (m_realtime) { if (m_realtime) {
while (m_channelData[0]->inbuf->getReadSpace() > 0 || while (m_channelData[0]->inbuf->getReadSpace() > 0 ||
(m_channelData[0]->accumulatorFill > 0 && m_channelData[0]->draining)) { m_channelData[0]->draining) {
m_log.log(2, "calling processOneChunk from available"); m_log.log(2, "calling processOneChunk from available");
if (((R2Stretcher *)this)->processOneChunk()) { if (((R2Stretcher *)this)->processOneChunk()) {
break; break;