diff options
-rw-r--r-- | firmware/mpeg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 606b724241..a6c6783beb 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -1512,7 +1512,8 @@ void mpeg_play(int offset) | |||
1512 | break; | 1512 | break; |
1513 | if(mp3info(&taginfo, trackname)) { | 1513 | if(mp3info(&taginfo, trackname)) { |
1514 | /* bad mp3, move on */ | 1514 | /* bad mp3, move on */ |
1515 | steps++; | 1515 | if(++steps > playlist_amount()) |
1516 | break; | ||
1516 | continue; | 1517 | continue; |
1517 | } | 1518 | } |
1518 | playlist_next(steps); | 1519 | playlist_next(steps); |
@@ -1575,7 +1576,8 @@ void mpeg_next(void) | |||
1575 | if(!file) | 1576 | if(!file) |
1576 | break; | 1577 | break; |
1577 | if(mp3info(&taginfo, file)) { | 1578 | if(mp3info(&taginfo, file)) { |
1578 | steps++; | 1579 | if(++steps > playlist_amount()) |
1580 | break; | ||
1579 | continue; | 1581 | continue; |
1580 | } | 1582 | } |
1581 | index = playlist_next(steps); | 1583 | index = playlist_next(steps); |