diff options
Diffstat (limited to '')
-rw-r--r-- | src/playlist/plugins/CuePlaylistPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist/plugins/CuePlaylistPlugin.cxx b/src/playlist/plugins/CuePlaylistPlugin.cxx index 8776baace..b907d34d0 100644 --- a/src/playlist/plugins/CuePlaylistPlugin.cxx +++ b/src/playlist/plugins/CuePlaylistPlugin.cxx @@ -52,9 +52,9 @@ CuePlaylist::NextSong() if (song != nullptr) return song; - std::string line; - while (tis.ReadLine(line)) { - parser.Feed(line.c_str()); + const char *line; + while ((line = tis.ReadLine()) != nullptr) { + parser.Feed(line); song = parser.Get(); if (song != nullptr) return song; |