summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Lidell <matsl@rockbox.org>2002-08-27 14:08:50 +0000
committerMats Lidell <matsl@rockbox.org>2002-08-27 14:08:50 +0000
commitd25cd8246d2929634db7a897789a9cf3425ea2d7 (patch)
treec296421b7fb877e5d82966610224bac7790907f9
parent5d3a0d3a93c40cfd4b9e44a633b10c7b1b269d23 (diff)
Update id3->index when changing song in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2005 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/mpeg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 7f736b42e7..2505b38561 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1343,9 +1343,10 @@ void mpeg_next(void)
#else
char* file;
int steps = 1;
+ int index;
do {
- file = playlist_next(steps, NULL);
+ file = playlist_next(steps, &index);
if(!file)
break;
if(mp3info(&taginfo, file)) {
@@ -1353,6 +1354,7 @@ void mpeg_next(void)
continue;
}
current_track_counter++;
+ taginfo.index = index;
playing = true;
break;
} while(1);
@@ -1366,9 +1368,10 @@ void mpeg_prev(void)
#else
char* file;
int steps = -1;
+ int index;
do {
- file = playlist_next(steps, NULL);
+ file = playlist_next(steps, &index);
if(!file)
break;
if(mp3info(&taginfo, file)) {
@@ -1376,6 +1379,7 @@ void mpeg_prev(void)
continue;
}
current_track_counter++;
+ taginfo.index = index;
playing = true;
break;
} while(1);