playlist/embcue: fix last track

This commit is contained in:
xent
2015-08-05 23:37:57 +02:00
committed by Max Kellermann
parent 3e9738dc66
commit 34db35c36d
2 changed files with 5 additions and 1 deletions

View File

@@ -128,8 +128,10 @@ DetachedSong *
EmbeddedCuePlaylist::NextSong()
{
DetachedSong *song = parser->Get();
if (song != nullptr)
if (song != nullptr) {
song->SetURI(filename);
return song;
}
while (*next != 0) {
const char *line = next;