1
0
Fork 0
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:
Miika Pekkarinen 2005-07-18 06:10:53 +00:00
parent e361749fe2
commit f5df9cd81c

View file

@ -1075,10 +1075,12 @@ void initialize_buffer_fill(void)
cur_idx = 0; cur_idx = 0;
} }
track_count = i + 1; track_count = i;
if (tracks[track_widx].filesize == 0) { if (tracks[track_widx].filesize == 0) {
if (--track_widx < 0) if (--track_widx < 0)
track_widx = MAX_TRACK - 1; track_widx = MAX_TRACK - 1;
} else {
track_count++;
} }
/* Mark all buffered entries null (not metadata for next track). */ /* Mark all buffered entries null (not metadata for next track). */