diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-04-09 13:07:08 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-04-09 13:07:08 +0000 |
commit | d5849e0d303d023ee8b49c0afcd7cf8d7ac9f022 (patch) | |
tree | ccbccbb81f4a9e98d88a446aef9d984627cea4e3 /apps | |
parent | 59e37cbccb315716ad6074ed01fd5a72fa6a1b79 (diff) | |
download | rockbox-d5849e0d303d023ee8b49c0afcd7cf8d7ac9f022.tar.gz 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')
-rw-r--r-- | apps/playlist.c | 9 |
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) | |||
624 | else | 624 | else |
625 | index = 0; | 625 | index = 0; |
626 | 626 | ||
627 | #if (CONFIG_CODEC != SWCODEC) | 627 | #if (CONFIG_CODEC == SWCODEC) |
628 | current_playlist.started = true; | ||
629 | #else | ||
628 | playlist_start(index, 0); | 630 | playlist_start(index, 0); |
629 | #endif | 631 | #endif |
630 | } | 632 | } |
@@ -2558,7 +2560,10 @@ int playlist_next(int steps) | |||
2558 | playlist->first_index = 0; | 2560 | playlist->first_index = 0; |
2559 | sort_playlist(playlist, false, false); | 2561 | sort_playlist(playlist, false, false); |
2560 | randomise_playlist(playlist, current_tick, false, true); | 2562 | randomise_playlist(playlist, current_tick, false, true); |
2561 | #if CONFIG_CODEC != SWCODEC | 2563 | |
2564 | #if CONFIG_CODEC == SWCODEC | ||
2565 | playlist->started = true; | ||
2566 | #else | ||
2562 | playlist_start(0, 0); | 2567 | playlist_start(0, 0); |
2563 | #endif | 2568 | #endif |
2564 | playlist->index = 0; | 2569 | playlist->index = 0; |