mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 15:12:30 -05:00
Stop playback if playlist_next() returns -1 (e.g. if auto directory change fails)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10091 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
432a698a2b
commit
1e0b1d58d6
1 changed files with 6 additions and 1 deletions
|
|
@ -945,7 +945,12 @@ static void audio_check_new_track(void)
|
||||||
}
|
}
|
||||||
/* Update the playlist */
|
/* Update the playlist */
|
||||||
last_peek_offset -= ci.new_track;
|
last_peek_offset -= ci.new_track;
|
||||||
playlist_next(ci.new_track);
|
|
||||||
|
if (playlist_next(ci.new_track) < 0)
|
||||||
|
{
|
||||||
|
queue_post(&codec_callback_queue, Q_CODEC_REQUEST_FAILED, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (new_playlist)
|
if (new_playlist)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue