Fixed end of playlist crash.
parent
fc9069d7c7
commit
c76c95529a
Audio
|
@ -158,8 +158,11 @@
|
|||
|
||||
- (void)setShouldContinue:(BOOL)s
|
||||
{
|
||||
[bufferChain setShouldContinue:s];
|
||||
[output setShouldContinue:s];
|
||||
if (bufferChain)
|
||||
[bufferChain setShouldContinue:s];
|
||||
|
||||
if (output)
|
||||
[output setShouldContinue:s];
|
||||
}
|
||||
|
||||
- (double)amountPlayed
|
||||
|
@ -256,16 +259,19 @@
|
|||
|
||||
- (void)endOfInputPlayed
|
||||
{
|
||||
[bufferChain release];
|
||||
|
||||
if ([chainQueue count] <= 0)
|
||||
{
|
||||
//End of playlist
|
||||
[self stop];
|
||||
|
||||
[bufferChain release];
|
||||
bufferChain = nil;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
[bufferChain release];
|
||||
|
||||
@synchronized(chainQueue) {
|
||||
bufferChain = [chainQueue objectAtIndex:0];
|
||||
[bufferChain retain];
|
||||
|
|
Loading…
Reference in New Issue