comparison data/fileio/MP3FileReader.cpp @ 686:b4a8d8221eaf debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:24 +0100
parents a4b8ad0f1a8f
children 06f13a3b9e9e
comparison
equal deleted inserted replaced
685:99222d4bfc78 686:b4a8d8221eaf
94 delete[] m_filebuffer; 94 delete[] m_filebuffer;
95 ::close(fd); 95 ::close(fd);
96 return; 96 return;
97 } else if (sz == 0) { 97 } else if (sz == 0) {
98 std::cerr << QString("MP3FileReader::MP3FileReader: Warning: reached EOF after only %1 of %2 bytes") 98 std::cerr << QString("MP3FileReader::MP3FileReader: Warning: reached EOF after only %1 of %2 bytes")
99 .arg(offset).arg(m_fileSize).toStdString() << std::endl; 99 .arg(offset).arg(m_fileSize) << std::endl;
100 m_fileSize = offset; 100 m_fileSize = offset;
101 break; 101 break;
102 } 102 }
103 offset += sz; 103 offset += sz;
104 } 104 }
139 139
140 std::cerr << "MP3FileReader ctor: exiting with file rate = " << m_fileRate << std::endl; 140 std::cerr << "MP3FileReader ctor: exiting with file rate = " << m_fileRate << std::endl;
141 } 141 }
142 142
143 if (m_error != "") { 143 if (m_error != "") {
144 std::cerr << "MP3FileReader::MP3FileReader(\"" << m_path.toStdString() << "\"): ERROR: " << m_error.toStdString() << std::endl; 144 std::cerr << "MP3FileReader::MP3FileReader(\"" << m_path << "\"): ERROR: " << m_error << std::endl;
145 } 145 }
146 } 146 }
147 147
148 MP3FileReader::~MP3FileReader() 148 MP3FileReader::~MP3FileReader()
149 { 149 {
250 QString rv = QString::fromUtf8((const char *)u8str); 250 QString rv = QString::fromUtf8((const char *)u8str);
251 free(u8str); 251 free(u8str);
252 252
253 #ifdef DEBUG_ID3TAG 253 #ifdef DEBUG_ID3TAG
254 std::cerr << "MP3FileReader::loadTags: tag \"" << name << "\" -> \"" 254 std::cerr << "MP3FileReader::loadTags: tag \"" << name << "\" -> \""
255 << rv.toStdString() << "\"" << std::endl; 255 << rv << "\"" << std::endl;
256 #endif 256 #endif
257 257
258 258
259 return rv; 259 return rv;
260 260