Still not bright

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9666 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-04-14 17:48:01 +00:00
parent de25006ad9
commit 530cad32e8

View file

@ -653,7 +653,7 @@ size_t buffer_count_tracks(int from_track, int to_track) {
from_track -= MAX_TRACK; from_track -= MAX_TRACK;
need_wrap = false; need_wrap = false;
} }
if (from_track < to_track || need_wrap) if (from_track >= to_track && !need_wrap)
break; break;
amount += tracks[from_track].codecsize + tracks[from_track].filesize; amount += tracks[from_track].codecsize + tracks[from_track].filesize;
} }