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)
|
if (dir_skip)
|
||||||
{
|
{
|
||||||
dir_skip = false;
|
dir_skip = false;
|
||||||
if (playlist_next_dir(ci.new_track))
|
/* regardless of the return value we need to rebuffer.
|
||||||
{
|
if it fails the old playlist will resume, else the
|
||||||
ci.new_track = 0;
|
next dir will start playing */
|
||||||
audio_rebuffer();
|
playlist_next_dir(ci.new_track);
|
||||||
goto skip_done;
|
ci.new_track = 0;
|
||||||
}
|
audio_rebuffer();
|
||||||
else
|
goto skip_done;
|
||||||
{
|
|
||||||
LOGFQUEUE("audio >|= codec Q_CODEC_REQUEST_FAILED");
|
|
||||||
return Q_CODEC_REQUEST_FAILED;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_playlist)
|
if (new_playlist)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue