forked from len0rd/rockbox
Fix FS#8282 - if next-dir fails resume the old playlist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19324 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2f1892a267
commit
7bc50d1aa5
1 changed files with 7 additions and 11 deletions
|
@ -1949,17 +1949,13 @@ static int audio_check_new_track(void)
|
|||
if (dir_skip)
|
||||
{
|
||||
dir_skip = false;
|
||||
if (playlist_next_dir(ci.new_track))
|
||||
{
|
||||
ci.new_track = 0;
|
||||
audio_rebuffer();
|
||||
goto skip_done;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGFQUEUE("audio >|= codec Q_CODEC_REQUEST_FAILED");
|
||||
return Q_CODEC_REQUEST_FAILED;
|
||||
}
|
||||
/* regardless of the return value we need to rebuffer.
|
||||
if it fails the old playlist will resume, else the
|
||||
next dir will start playing */
|
||||
playlist_next_dir(ci.new_track);
|
||||
ci.new_track = 0;
|
||||
audio_rebuffer();
|
||||
goto skip_done;
|
||||
}
|
||||
|
||||
if (new_playlist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue