Skip to content

Commit

Permalink
Trying to fix errors when skipping tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
plaetzchen committed Jan 20, 2015
1 parent 2656771 commit 1f81f88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SoundcloudPlayer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = SoundcloudPlayer/SoundcloudPlayer.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_IDENTITY = "Developer ID Application";
COMBINE_HIDPI_IMAGES = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -867,7 +867,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = SoundcloudPlayer/SoundcloudPlayer.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_IDENTITY = "Developer ID Application";
COMBINE_HIDPI_IMAGES = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down
3 changes: 1 addition & 2 deletions SoundcloudPlayer/SharedAudioPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ - (void)nextItem {
}

- (void)previousItem {
[self advanceToTime:0];
if (CMTimeGetSeconds(self.audioPlayer.currentTime) > 5) {
[self advanceToTime:0];
} else {
if (self.positionInPlaylist >= 1) {
if (self.shuffleEnabled){
[self jumpToItemAtIndex:[self.shuffledItemsToPlay indexOfObject:[self.itemsToPlay objectAtIndex:self.positionInPlaylist]]-1 startPlaying:self.audioPlayer.rate];
Expand Down
2 changes: 1 addition & 1 deletion SoundcloudPlayer/SoundcloudPlayer-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>313</string>
<string>316</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.music</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 1f81f88

Please sign in to comment.