forked from len0rd/rockbox
Track count is now correct.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7185 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e361749fe2
commit
f5df9cd81c
1 changed files with 3 additions and 1 deletions
|
|
@ -1075,10 +1075,12 @@ void initialize_buffer_fill(void)
|
|||
cur_idx = 0;
|
||||
}
|
||||
|
||||
track_count = i + 1;
|
||||
track_count = i;
|
||||
if (tracks[track_widx].filesize == 0) {
|
||||
if (--track_widx < 0)
|
||||
track_widx = MAX_TRACK - 1;
|
||||
} else {
|
||||
track_count++;
|
||||
}
|
||||
|
||||
/* Mark all buffered entries null (not metadata for next track). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue