From 0eb32ff9f6c25939453a20f59a11dc8d4f8b2a14 Mon Sep 17 00:00:00 2001 From: vspader Date: Sun, 21 Oct 2007 21:01:40 +0000 Subject: [PATCH] Fixed problem with track changes. --- Application/PlaybackController.m | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 71de4a244..661c815f7 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -271,25 +271,9 @@ - (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]; - } + [player setNextStream:[pe url] withUserInfo:pe]; } - (void)audioPlayer:(AudioPlayer *)player streamChanged:(id)userInfo