diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c index fa355bcaa..7a9a0ea6c 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -682,6 +682,12 @@ int addSongToPlaylist(int fd, Song * song, int *added_id) incrPlaylistVersion(); + /* we could be playing (but done decoding) the last song */ + if (ob_get_state() != OB_STATE_STOP) { + playlist_state = PLAYLIST_STATE_PLAY; + queueNextSongInPlaylist(); + } + if (added_id) *added_id = id; |