Fixed problem with track changes.
This commit is contained in:
parent
9fed5759ae
commit
0eb32ff9f6
1 changed files with 2 additions and 18 deletions
|
@ -271,26 +271,10 @@
|
|||
- (void)audioPlayer:(AudioPlayer *)player requestNextStream:(id)userInfo
|
||||
{
|
||||
PlaylistEntry *curEntry = (PlaylistEntry *)userInfo;
|
||||
PlaylistEntry *pe;
|
||||
PlaylistEntry *pe = [playlistController getNextEntry:curEntry];
|
||||
|
||||
if ([playlistController shuffle] == YES)
|
||||
{
|
||||
pe = [playlistController entryAtIndex:[[curEntry shuffleIndex] intValue] + 1];
|
||||
}
|
||||
else
|
||||
{
|
||||
pe = [playlistController entryAtIndex:[[curEntry index] intValue] + 1];
|
||||
}
|
||||
|
||||
if (pe == nil)
|
||||
{
|
||||
[player setNextStream:nil];
|
||||
}
|
||||
else
|
||||
{
|
||||
[player setNextStream:[pe url] withUserInfo:pe];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)audioPlayer:(AudioPlayer *)player streamChanged:(id)userInfo
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue