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

2
NEWS
View File

@ -15,6 +15,8 @@ ver 0.20 (not yet released)
- ffmpeg: support ReplayGain and MixRamp - ffmpeg: support ReplayGain and MixRamp
- ffmpeg: support stream tags - ffmpeg: support stream tags
- mpcdec: read the bit rate - mpcdec: read the bit rate
* playlist
- embcue: fix last track
* output * output
- jack: reduce CPU usage - jack: reduce CPU usage
- pulse: set channel map to WAVE-EX - pulse: set channel map to WAVE-EX

View File

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