forked from len0rd/rockbox
Update id3->index when changing song in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2005 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5d3a0d3a93
commit
d25cd8246d
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue