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

@ -1357,6 +1357,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) {
ci.stop_codec = true;