forked from len0rd/rockbox
In flush_reload, don't reset swapwrite if we're still swapping current track. Fixes a silent play bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3760 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b88f2bc9b1
commit
df34e6b71a
1 changed files with 6 additions and 1 deletions
|
@ -1675,7 +1675,12 @@ static void mpeg_thread(void)
|
|||
int next = (tag_read_idx+1) & MAX_ID3_TAGS_MASK;
|
||||
|
||||
/* Reset the buffer */
|
||||
mp3buf_write = mp3buf_swapwrite = id3tags[next]->mempos;
|
||||
mp3buf_write = id3tags[next]->mempos;
|
||||
|
||||
/* Reset swapwrite unless we're still swapping current
|
||||
track */
|
||||
if (get_unplayed_space() <= get_playable_space())
|
||||
mp3buf_swapwrite = mp3buf_write;
|
||||
|
||||
close(mpeg_file);
|
||||
remove_all_non_current_tags();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue