From c5436aebdd7234c6a89198b8766e47486b1cae7c Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 3 May 2010 18:32:26 +0000 Subject: Cleanup. svn-id: r48921 --- sound/decoders/raw.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sound/decoders/raw.cpp') diff --git a/sound/decoders/raw.cpp b/sound/decoders/raw.cpp index d2efb19534..2259cd315c 100644 --- a/sound/decoders/raw.cpp +++ b/sound/decoders/raw.cpp @@ -145,11 +145,8 @@ int RawStream::readBuffer(int16 *buffer, const int nu int len = fillBuffer(samplesLeft); // In case we were not able to read any samples - // and we reached the end of the stream we will - // skip reading here. We do not check endOfData - // alone here to allow empty blocks in the stream. - // (TODO/FIXME: Do we really need that?) - if (!len && endOfData()) + // we will stop reading here. + if (!len) break; // Adjust the samples left to read. -- cgit v1.2.3