summaryrefslogtreecommitdiffstats
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-04-09 13:07:08 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-04-09 13:07:08 +0000
commitd5849e0d303d023ee8b49c0afcd7cf8d7ac9f022 (patch)
treeccbccbb81f4a9e98d88a446aef9d984627cea4e3 /apps/playlist.c
parent59e37cbccb315716ad6074ed01fd5a72fa6a1b79 (diff)
downloadrockbox-d5849e0d303d023ee8b49c0afcd7cf8d7ac9f022.tar.gz
rockbox-d5849e0d303d023ee8b49c0afcd7cf8d7ac9f022.tar.bz2
rockbox-d5849e0d303d023ee8b49c0afcd7cf8d7ac9f022.zip
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
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c9
1 files 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;