1
0
Fork 0
forked from len0rd/rockbox

Changing tracks in REPEAT_ONE mode restarts the current track instead of crashing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7232 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Ryan Jackson 2005-07-24 04:17:34 +00:00
parent 255e1cf79c
commit 795ce8b1a8

View file

@ -1246,7 +1246,7 @@ bool codec_request_next_track_callback(void)
return false;
logf("Request new track");
/* Advance to next track. */
if (ci.reload_codec && new_track > 0) {
if (!playlist_check(new_track))
@ -1356,6 +1356,18 @@ static void initiate_track_change(int peek_index)
{
if (!playlist_check(peek_index))
return ;
if (global_settings.repeat_mode == REPEAT_ONE) {
if (!paused)
pcm_play_pause(false);
audio_ff_rewind(0);
if (!paused)
pcm_play_pause(true);
return;
}
/* Detect if disk is spinning.. */
if (filling) {