Fixed Repeat None correctly this time
parent
1f0f4a75a0
commit
b50ed67591
|
@ -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
|
||||
|
|
|
@ -267,6 +267,10 @@
|
|||
[nextStreamRGInfo retain];
|
||||
|
||||
[self requestNextStream: nextStreamUserInfo];
|
||||
|
||||
if (!nextStream)
|
||||
return YES;
|
||||
|
||||
newChain = [[BufferChain alloc] initWithController:self];
|
||||
|
||||
endOfInputReached = YES;
|
||||
|
|
Loading…
Reference in New Issue