Fixed Repeat None correctly this time

CQTexperiment
Chris Moeller 2015-02-10 21:42:36 -08:00
parent 1f0f4a75a0
commit b50ed67591
2 changed files with 9 additions and 2 deletions

View File

@ -478,12 +478,15 @@ NSDictionary * makeRGInfo(PlaylistEntry *pe)
else
{
pe = [playlistController getNextEntry:curEntry];
if ([pe metadataLoaded] != YES) {
if (pe && [pe metadataLoaded] != YES) {
[pe performSelectorOnMainThread:@selector(setMetadata:) withObject:[playlistLoader readEntryInfo:pe] waitUntilDone:YES];
}
}
[player setNextStream:[pe URL] withUserInfo:pe withRGInfo:makeRGInfo(pe)];
if (pe)
[player setNextStream:[pe URL] withUserInfo:pe withRGInfo:makeRGInfo(pe)];
else
[player setNextStream:nil];
}
- (void)audioPlayer:(AudioPlayer *)player didBeginStream:(id)userInfo

View File

@ -267,6 +267,10 @@
[nextStreamRGInfo retain];
[self requestNextStream: nextStreamUserInfo];
if (!nextStream)
return YES;
newChain = [[BufferChain alloc] initWithController:self];
endOfInputReached = YES;