mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 02:22:43 -05:00
This seems to fix a few bugs in that
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9811 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
da1cddfcbb
commit
69cf4f57ac
1 changed files with 6 additions and 0 deletions
|
|
@ -940,7 +940,10 @@ static void audio_check_new_track(void)
|
||||||
playlist_next(ci.new_track);
|
playlist_next(ci.new_track);
|
||||||
|
|
||||||
if (new_playlist)
|
if (new_playlist)
|
||||||
|
{
|
||||||
ci.new_track = 1;
|
ci.new_track = 1;
|
||||||
|
new_playlist = false;
|
||||||
|
}
|
||||||
|
|
||||||
track_ridx+=ci.new_track;
|
track_ridx+=ci.new_track;
|
||||||
if (track_ridx >= MAX_TRACK)
|
if (track_ridx >= MAX_TRACK)
|
||||||
|
|
@ -2095,6 +2098,9 @@ static void audio_new_playlist(void)
|
||||||
close(current_fd);
|
close(current_fd);
|
||||||
current_fd = -1;
|
current_fd = -1;
|
||||||
|
|
||||||
|
/* Mark the current track as invalid to prevent skipping back to it */
|
||||||
|
cur_ti->taginfo_ready = false;
|
||||||
|
|
||||||
/* Invalidate the buffer other than the playing track */
|
/* Invalidate the buffer other than the playing track */
|
||||||
filebufused = cur_ti->available;
|
filebufused = cur_ti->available;
|
||||||
buf_widx = buf_ridx + cur_ti->available;
|
buf_widx = buf_ridx + cur_ti->available;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue