Commit a0fae8da authored by Max Kellermann's avatar Max Kellermann

playlist/extm3u: strip first line for #EXTM3U detection

parent bc840b69
ver 0.19.1 (not yet released)
* input
- mms: fix deadlock bug
* playlist
- extm3u: fix Extended M3U detection
* fix build failure on Mac OS X
* add missing file systemd/mpd.socket to tarball
......
......@@ -39,8 +39,12 @@ public:
}
bool CheckFirstLine() {
const char *line = tis.ReadLine();
return line != nullptr && strcmp(line, "#EXTM3U") == 0;
char *line = tis.ReadLine();
if (line == nullptr)
return false;
StripRight(line);
return strcmp(line, "#EXTM3U") == 0;
}
virtual DetachedSong *NextSong() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment