Fixed bug when you changed the playlist without having a next song queued up.

This commit is contained in:
vspader 2009-02-28 11:01:49 -08:00
parent fda5d50712
commit 85630c836a

View file

@ -168,11 +168,14 @@
- (void)resetNextStreams - (void)resetNextStreams
{ {
@synchronized (chainQueue) { @synchronized (chainQueue) {
NSUInteger count = [chainQueue count];
[chainQueue removeAllObjects]; [chainQueue removeAllObjects];
}
if (count) {
[self endOfInputReached:bufferChain]; [self endOfInputReached:bufferChain];
} }
}
}
- (void)setShouldContinue:(BOOL)s - (void)setShouldContinue:(BOOL)s