Skip to content
Browse files

Playing if valid.

  • Loading branch information...
1 parent 97935a1 commit 06fed7a0001687ca811120634778d83712761534 @thegautam committed Oct 22, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Three20UI/Sources/TTPhotoViewController.m
View
5 src/Three20UI/Sources/TTPhotoViewController.m
@@ -1109,9 +1109,12 @@ - (int)progressCount {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)playSound:(NSInteger)currentIndex {
- player =[_photoSource newPlayer:currentIndex];
+ player = [_photoSource newPlayer:currentIndex];
+ if (player != nil)
+ {
[player prepareToPlay];
[player play];
+ }
}
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)stopPlayingSound {

0 comments on commit 06fed7a

Please sign in to comment.
Something went wrong with that request. Please try again.