forked from len0rd/rockbox
Better handling of next/prev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3528 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9c1f29f9fb
commit
9d860e19d2
4 changed files with 14 additions and 4 deletions
|
|
@ -77,6 +77,7 @@ static enum
|
|||
#endif
|
||||
|
||||
extern char* playlist_peek(int steps);
|
||||
extern bool playlist_check(int steps);
|
||||
extern int playlist_next(int steps);
|
||||
extern int playlist_amount(void);
|
||||
extern void update_file_pos( int id, int pos );
|
||||
|
|
@ -1415,7 +1416,7 @@ static void mpeg_thread(void)
|
|||
}
|
||||
}
|
||||
else {
|
||||
if (!playlist_peek(1))
|
||||
if (!playlist_check(1))
|
||||
break;
|
||||
|
||||
/* stop the current stream */
|
||||
|
|
@ -1450,8 +1451,10 @@ static void mpeg_thread(void)
|
|||
|
||||
case MPEG_PREV: {
|
||||
DEBUGF("MPEG_PREV\n");
|
||||
if (!playlist_peek(-1))
|
||||
|
||||
if (!playlist_check(-1))
|
||||
break;
|
||||
|
||||
/* stop the current stream */
|
||||
play_pending = false;
|
||||
playing = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue