1
0
Fork 0
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:
Jonathan Gordon 2008-12-04 09:23:43 +00:00
parent 2f1892a267
commit 7bc50d1aa5

View file

@ -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)