From d5849e0d303d023ee8b49c0afcd7cf8d7ac9f022 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 9 Apr 2011 13:07:08 +0000 Subject: Playlists forget to set playlist.started when creating new playlist on SWCODEC and which leads to flush-and-rebuffer messages never being sent again until playback is restarted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29697 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/playlist.c b/apps/playlist.c index 6c1d97a6ef..14ebb7a198 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -624,7 +624,9 @@ static int create_and_play_dir(int direction, bool play_last) else index = 0; -#if (CONFIG_CODEC != SWCODEC) +#if (CONFIG_CODEC == SWCODEC) + current_playlist.started = true; +#else playlist_start(index, 0); #endif } @@ -2558,7 +2560,10 @@ int playlist_next(int steps) playlist->first_index = 0; sort_playlist(playlist, false, false); randomise_playlist(playlist, current_tick, false, true); -#if CONFIG_CODEC != SWCODEC + +#if CONFIG_CODEC == SWCODEC + playlist->started = true; +#else playlist_start(0, 0); #endif playlist->index = 0; -- cgit v1.2.3