If the track iterator was already on the last track, the check for
returning an empty block iterator would not get executed, and the throw
at the end of the function would get triggered.
{
last = rev;
rev = rev.next();
-
- // If we ran out of tracks, return an empty iterator
- if(!rev)
- return BlockIter();
}
+ // If we ran out of tracks, return an empty iterator
+ if(!rev)
+ return BlockIter();
+
TrackIter fwd = last.reverse();
for(unsigned i=0; i<beps.size(); ++i)
if(beps[i].track==fwd.track() && beps[i].track_ep==fwd.entry())