Commit 90777f78 authored by Max Kellermann's avatar Max Kellermann

playlist/(Ext)M3u: use strchug_fast()

parent 7cb803ad
...@@ -125,8 +125,7 @@ ExtM3uPlaylist::NextSong() ...@@ -125,8 +125,7 @@ ExtM3uPlaylist::NextSong()
continue; continue;
} }
while (*line_s != 0 && g_ascii_isspace(*line_s)) line_s = strchug_fast(line_s);
++line_s;
} while (line_s[0] == '#' || *line_s == 0); } while (line_s[0] == '#' || *line_s == 0);
song = Song::NewRemote(line_s); song = Song::NewRemote(line_s);
......
...@@ -22,10 +22,9 @@ ...@@ -22,10 +22,9 @@
#include "PlaylistPlugin.hxx" #include "PlaylistPlugin.hxx"
#include "SongEnumerator.hxx" #include "SongEnumerator.hxx"
#include "Song.hxx" #include "Song.hxx"
#include "util/StringUtil.hxx"
#include "TextInputStream.hxx" #include "TextInputStream.hxx"
#include <glib.h>
class M3uPlaylist final : public SongEnumerator { class M3uPlaylist final : public SongEnumerator {
TextInputStream tis; TextInputStream tis;
...@@ -54,9 +53,7 @@ M3uPlaylist::NextSong() ...@@ -54,9 +53,7 @@ M3uPlaylist::NextSong()
return NULL; return NULL;
line_s = line.c_str(); line_s = line.c_str();
line_s = strchug_fast(line_s);
while (*line_s != 0 && g_ascii_isspace(*line_s))
++line_s;
} while (line_s[0] == '#' || *line_s == 0); } while (line_s[0] == '#' || *line_s == 0);
return Song::NewRemote(line_s); return Song::NewRemote(line_s);
......
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