diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2006-04-23 17:15:45 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2006-04-23 17:15:45 +0000 |
| commit | 3f7292e13a71cfeb2258e4aefba8685cd9a882fc (patch) | |
| tree | 66b694187c93c7ce9e4399d47d01f6e7a69e4135 | |
| parent | bc3f2466e6e345824e6ab06e484b2259d1f6c6c8 (diff) | |
| download | rockbox-3f7292e13a71cfeb2258e4aefba8685cd9a882fc.zip rockbox-3f7292e13a71cfeb2258e4aefba8685cd9a882fc.tar.gz rockbox-3f7292e13a71cfeb2258e4aefba8685cd9a882fc.tar.bz2 rockbox-3f7292e13a71cfeb2258e4aefba8685cd9a882fc.tar.xz | |
Don't call playlist_start() when changing directories on swcodec devices. Fixes problem with previous dir not working.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9774 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 87bce59..958c003 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -2471,8 +2471,7 @@ int playlist_next(int steps) #if CONFIG_CODEC != SWCODEC playlist_start(0, 0); #endif - playlist->index = 0; - index = 0; + playlist->index = index = 0; } } } @@ -2486,8 +2485,10 @@ int playlist_next(int steps) ft_build_playlist(tree_get_context(), 0); if (global_settings.playlist_shuffle) playlist_shuffle(current_tick, -1); - playlist_start(current_playlist.amount-1,0); - index = current_playlist.amount-1; +#if CONFIG_CODEC != SWCODEC + playlist_start(current_playlist.amount-1, 0); +#endif + playlist->index = index = current_playlist.amount - 1; } } } |