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) ver 0.19.1 (not yet released)
* input * input
- mms: fix deadlock bug - mms: fix deadlock bug
* playlist
- extm3u: fix Extended M3U detection
* fix build failure on Mac OS X * fix build failure on Mac OS X
* add missing file systemd/mpd.socket to tarball * add missing file systemd/mpd.socket to tarball
......
...@@ -39,8 +39,12 @@ public: ...@@ -39,8 +39,12 @@ public:
} }
bool CheckFirstLine() { bool CheckFirstLine() {
const char *line = tis.ReadLine(); char *line = tis.ReadLine();
return line != nullptr && strcmp(line, "#EXTM3U") == 0; if (line == nullptr)
return false;
StripRight(line);
return strcmp(line, "#EXTM3U") == 0;
} }
virtual DetachedSong *NextSong() override; 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