Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Renskers committed Oct 5, 2012
1 parent b966a86 commit e956070
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions GVMusicPlayerController/GVMusicPlayerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ - (void)setNowPlayingItem:(MPMediaItem *)nowPlayingItem {
_nowPlayingItem = nowPlayingItem;

// Used to prevent duplicate notifications
self.isLoadingAsset = YES;
self.isLoadingAsset = YES;

// Create a new player item
NSURL *assetUrl = [nowPlayingItem valueForProperty:MPMediaItemPropertyAssetURL];
Expand Down Expand Up @@ -317,8 +317,8 @@ - (void)setNowPlayingItem:(MPMediaItem *)nowPlayingItem {
}

- (void)handleAVPlayerItemDidPlayToEndTimeNotification {
dispatch_async(dispatch_get_main_queue(), ^{
if (!self.isLoadingAsset) {
dispatch_async(dispatch_get_main_queue(), ^{
if (!self.isLoadingAsset) {
if (self.repeatMode == MPMusicRepeatModeOne) {
// Play the same track again
self.indexOfNowPlayingItem = self.indexOfNowPlayingItem;
Expand All @@ -329,8 +329,8 @@ - (void)handleAVPlayerItemDidPlayToEndTimeNotification {
// Go to next track
[self skipToNextItem];
}
}
});
}
});
}

- (void)doUpdateNowPlayingCenter {
Expand Down

0 comments on commit e956070

Please sign in to comment.