forked from len0rd/rockbox
Fix a lack of return on error for check_new_track (rare condition)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9661 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0291a6e200
commit
fb966b3cf8
1 changed files with 6 additions and 0 deletions
|
@ -789,11 +789,17 @@ static void audio_check_new_track(bool require_codec)
|
||||||
if (!playlist_check(new_track))
|
if (!playlist_check(new_track))
|
||||||
{
|
{
|
||||||
if (new_track >= 0)
|
if (new_track >= 0)
|
||||||
|
{
|
||||||
queue_post(&codec_callback_queue, Q_CODEC_REQUEST_FAILED, 0);
|
queue_post(&codec_callback_queue, Q_CODEC_REQUEST_FAILED, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* Find the beginning backward if the user over-skips it */
|
/* Find the beginning backward if the user over-skips it */
|
||||||
while (!playlist_check(++new_track))
|
while (!playlist_check(++new_track))
|
||||||
if (new_track >= 0)
|
if (new_track >= 0)
|
||||||
|
{
|
||||||
queue_post(&codec_callback_queue, Q_CODEC_REQUEST_FAILED, 0);
|
queue_post(&codec_callback_queue, Q_CODEC_REQUEST_FAILED, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Update the playlist */
|
/* Update the playlist */
|
||||||
last_peek_offset -= new_track;
|
last_peek_offset -= new_track;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue