aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
diff options
context:
space:
mode:
authorxent <alexdmitv@gmail.com>2015-08-05 23:37:57 +0200
committerMax Kellermann <max@duempel.org>2015-08-05 23:37:57 +0200
commit34db35c36d8bb32b2c41640432474f52889cce08 (patch)
treec1ab4aa0a984f9579aad6ba99989d424d6216e4f /src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
parent3e9738dc6669ad91d4140fb485742b9cf57842f9 (diff)
downloadmpd-34db35c36d8bb32b2c41640432474f52889cce08.tar.gz
mpd-34db35c36d8bb32b2c41640432474f52889cce08.tar.xz
mpd-34db35c36d8bb32b2c41640432474f52889cce08.zip
playlist/embcue: fix last track
Diffstat (limited to '')
-rw-r--r--src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx b/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
index 29b15b1de..e12dc2df0 100644
--- a/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
+++ b/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
@@ -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;