Fixed end of playlist crash.

CQTexperiment
vspader 2007-10-13 08:25:44 +00:00
parent fc9069d7c7
commit c76c95529a
1 changed files with 10 additions and 4 deletions

View File

@ -158,7 +158,10 @@
- (void)setShouldContinue:(BOOL)s
{
if (bufferChain)
[bufferChain setShouldContinue:s];
if (output)
[output setShouldContinue:s];
}
@ -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];