Mercurial > hg > svcore
diff data/fileio/MP3FileReader.cpp @ 230:2854dc429310
...
author | Chris Cannam |
---|---|
date | Mon, 12 Feb 2007 13:25:12 +0000 |
parents | b176e99f9c38 |
children | 0031495aba07 |
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp Mon Feb 12 13:20:43 2007 +0000 +++ b/data/fileio/MP3FileReader.cpp Mon Feb 12 13:25:12 2007 +0000 @@ -75,6 +75,9 @@ delete[] filebuffer; ::close(fd); return; + } else if (sz == 0) { + std::cerr << QString("MP3FileReader::MP3FileReader: Warning: read only %1 of %2 bytes").arg(offset).arg(m_fileSize).toStdString() << std::endl; + break; } offset += sz; }