Fixed Repeat None correctly this time
This commit is contained in:
parent
1f0f4a75a0
commit
b50ed67591
2 changed files with 9 additions and 2 deletions
|
@ -478,12 +478,15 @@ NSDictionary * makeRGInfo(PlaylistEntry *pe)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pe = [playlistController getNextEntry:curEntry];
|
pe = [playlistController getNextEntry:curEntry];
|
||||||
if ([pe metadataLoaded] != YES) {
|
if (pe && [pe metadataLoaded] != YES) {
|
||||||
[pe performSelectorOnMainThread:@selector(setMetadata:) withObject:[playlistLoader readEntryInfo:pe] waitUntilDone: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
|
- (void)audioPlayer:(AudioPlayer *)player didBeginStream:(id)userInfo
|
||||||
|
|
|
@ -267,6 +267,10 @@
|
||||||
[nextStreamRGInfo retain];
|
[nextStreamRGInfo retain];
|
||||||
|
|
||||||
[self requestNextStream: nextStreamUserInfo];
|
[self requestNextStream: nextStreamUserInfo];
|
||||||
|
|
||||||
|
if (!nextStream)
|
||||||
|
return YES;
|
||||||
|
|
||||||
newChain = [[BufferChain alloc] initWithController:self];
|
newChain = [[BufferChain alloc] initWithController:self];
|
||||||
|
|
||||||
endOfInputReached = YES;
|
endOfInputReached = YES;
|
||||||
|
|
Loading…
Reference in a new issue