svn-id: r48921
This commit is contained in:
Johannes Schickel 2010-05-03 18:32:26 +00:00
parent e7f29db498
commit c5436aebdd

View file

@ -145,11 +145,8 @@ int RawStream<is16Bit, isUnsigned, isLE>::readBuffer(int16 *buffer, const int nu
int len = fillBuffer(samplesLeft); int len = fillBuffer(samplesLeft);
// In case we were not able to read any samples // In case we were not able to read any samples
// and we reached the end of the stream we will // we will stop reading here.
// skip reading here. We do not check endOfData if (!len)
// alone here to allow empty blocks in the stream.
// (TODO/FIXME: Do we really need that?)
if (!len && endOfData())
break; break;
// Adjust the samples left to read. // Adjust the samples left to read.