aboutsummaryrefslogtreecommitdiff
path: root/sound/decoders/raw.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-05-03 18:32:26 +0000
committerJohannes Schickel2010-05-03 18:32:26 +0000
commitc5436aebdd7234c6a89198b8766e47486b1cae7c (patch)
tree464b2cba3ee913f40f77b33fe0f270d31e684be3 /sound/decoders/raw.cpp
parente7f29db4980ec3ad654a1b490ae040d09ad36ef1 (diff)
downloadscummvm-rg350-c5436aebdd7234c6a89198b8766e47486b1cae7c.tar.gz
scummvm-rg350-c5436aebdd7234c6a89198b8766e47486b1cae7c.tar.bz2
scummvm-rg350-c5436aebdd7234c6a89198b8766e47486b1cae7c.zip
Cleanup.
svn-id: r48921
Diffstat (limited to 'sound/decoders/raw.cpp')
-rw-r--r--sound/decoders/raw.cpp7
1 files changed, 2 insertions, 5 deletions
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<is16Bit, isUnsigned, isLE>::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.