summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-01-03 22:54:02 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-01-03 22:54:02 +0000
commit8fd18e9b8dd130c78856910dc29598c5a13864bd (patch)
tree737bd910b0bc867789bc58ee5dd1c5febc9744df /firmware/mpeg.c
parent3c67da8eda6c1064cd9ed766c8480b77e03483c3 (diff)
Prev was going back too many tracks if more than one track was loaded in memory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3035 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 914dd38319..f2a969705b 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1432,7 +1432,6 @@ static void mpeg_thread(void)
break;
case MPEG_PREV: {
- int numtracks = num_tracks_in_memory();
DEBUGF("MPEG_PREV\n");
if (!playlist_peek(-1))
break;
@@ -1448,7 +1447,7 @@ static void mpeg_thread(void)
if (mpeg_file >= 0)
close(mpeg_file);
- if (new_file(-numtracks) < 0) {
+ if (new_file(-1) < 0) {
DEBUGF("No more files to play\n");
filling = false;
} else {