forked from len0rd/rockbox
Now playlist ending and skipping to a next directory should work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7267 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
47c82f295b
commit
05820cbc07
1 changed files with 6 additions and 2 deletions
|
@ -1306,8 +1306,10 @@ bool codec_request_next_track_callback(void)
|
|||
|
||||
/* Codec requested track change (next track). */
|
||||
else {
|
||||
if (!playlist_check(1))
|
||||
if (!playlist_check(1)) {
|
||||
ci.reload_codec = false;
|
||||
return false;
|
||||
}
|
||||
last_peek_offset--;
|
||||
playlist_next(1);
|
||||
if (++track_ridx >= MAX_TRACK)
|
||||
|
@ -1321,8 +1323,10 @@ bool codec_request_next_track_callback(void)
|
|||
|
||||
if (tracks[track_ridx].filesize == 0) {
|
||||
logf("No more tracks [2]");
|
||||
ci.reload_codec = false;
|
||||
ci.stop_codec = true;
|
||||
new_track = 0;
|
||||
last_index = -1;
|
||||
queue_post(&audio_queue, AUDIO_PLAY, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue