comparison data/fileio/MP3FileReader.cpp @ 632:a4b8ad0f1a8f

* Some sketchy track lookup code
author Chris Cannam
date Fri, 19 Mar 2010 12:21:59 +0000
parents 0a9e960fca53
children b4a8d8221eaf
comparison
equal deleted inserted replaced
631:3a5ee4b6c9ad 632:a4b8ad0f1a8f
187 if (m_title == "") m_title = loadTag(tag, "TIT1"); 187 if (m_title == "") m_title = loadTag(tag, "TIT1");
188 188
189 m_maker = loadTag(tag, "TPE1"); // "lead artist" 189 m_maker = loadTag(tag, "TPE1"); // "lead artist"
190 if (m_maker == "") m_maker = loadTag(tag, "TPE2"); 190 if (m_maker == "") m_maker = loadTag(tag, "TPE2");
191 191
192 for (unsigned int i = 0; i < tag->nframes; ++i) {
193 if (tag->frames[i]) {
194 QString value = loadTag(tag, tag->frames[i]->id);
195 if (value != "") m_tags[tag->frames[i]->id] = value;
196 }
197 }
198
192 id3_file_close(file); 199 id3_file_close(file);
193 200
194 #else 201 #else
195 #ifdef DEBUG_ID3TAG 202 #ifdef DEBUG_ID3TAG
196 std::cerr << "MP3FileReader::loadTags: ID3 tag support not compiled in" 203 std::cerr << "MP3FileReader::loadTags: ID3 tag support not compiled in"