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:
parent
7e0e4e48e4
commit
7f7451b72a
@ -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, ¤t_metadata)) {
|
if (!ParseMetadata(line, ¤t_metadata)) {
|
||||||
qLog(Warning) << "Failed to parse metadata: " << line;
|
qLog(Warning) << "Failed to parse metadata: " << line;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!line.isEmpty()) {
|
} else if (!line.isEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user