playlist/(Ext)M3u: use strchug_fast()

This commit is contained in:
Max Kellermann 2013-10-19 15:36:42 +02:00
parent 7cb803ad5c
commit 90777f78c9
2 changed files with 3 additions and 7 deletions

View File

@ -125,8 +125,7 @@ ExtM3uPlaylist::NextSong()
continue;
}
while (*line_s != 0 && g_ascii_isspace(*line_s))
++line_s;
line_s = strchug_fast(line_s);
} while (line_s[0] == '#' || *line_s == 0);
song = Song::NewRemote(line_s);

View File

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