Stop the M3UParser from going into an infinite loop when parsing a file with an invalid #EXTINF line. Fixes issue 2080

This commit is contained in:
David Sansome 2011-08-27 22:35:00 +01:00
parent 7e0e4e48e4
commit 7f7451b72a

View File

@ -52,7 +52,6 @@ SongList M3UParser::Load(QIODevice* device, const QString& playlist_path, const
if (type == EXTENDED && line.startsWith("#EXT")) { if (type == EXTENDED && line.startsWith("#EXT")) {
if (!ParseMetadata(line, &current_metadata)) { if (!ParseMetadata(line, &current_metadata)) {
qLog(Warning) << "Failed to parse metadata: " << line; qLog(Warning) << "Failed to parse metadata: " << line;
continue;
} }
} }
} else if (!line.isEmpty()) { } else if (!line.isEmpty()) {