summaryrefslogtreecommitdiffstats
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 718d5c4c62..015d6a9e2a 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -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;