Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.cpp @ 230:2854dc429310
...
author | Chris Cannam |
---|---|
date | Mon, 12 Feb 2007 13:25:12 +0000 |
parents | b176e99f9c38 |
children | 0031495aba07 |
comparison
equal
deleted
inserted
replaced
229:b176e99f9c38 | 230:2854dc429310 |
---|---|
73 if (sz < 0) { | 73 if (sz < 0) { |
74 m_error = QString("Read error for file %1 (after %2 bytes)").arg(path).arg(offset); | 74 m_error = QString("Read error for file %1 (after %2 bytes)").arg(path).arg(offset); |
75 delete[] filebuffer; | 75 delete[] filebuffer; |
76 ::close(fd); | 76 ::close(fd); |
77 return; | 77 return; |
78 } else if (sz == 0) { | |
79 std::cerr << QString("MP3FileReader::MP3FileReader: Warning: read only %1 of %2 bytes").arg(offset).arg(m_fileSize).toStdString() << std::endl; | |
80 break; | |
78 } | 81 } |
79 offset += sz; | 82 offset += sz; |
80 } | 83 } |
81 | 84 |
82 ::close(fd); | 85 ::close(fd); |