Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Playing if valid.

  • Loading branch information...
commit 06fed7a0001687ca811120634778d83712761534 1 parent 97935a1
Gautam Kedia authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 src/Three20UI/Sources/TTPhotoViewController.m
5 src/Three20UI/Sources/TTPhotoViewController.m
@@ -1109,9 +1109,12 @@ - (int)progressCount {
1109 1109
1110 1110 ///////////////////////////////////////////////////////////////////////////////////////////////////
1111 1111 - (void)playSound:(NSInteger)currentIndex {
1112   - player =[_photoSource newPlayer:currentIndex];
  1112 + player = [_photoSource newPlayer:currentIndex];
  1113 + if (player != nil)
  1114 + {
1113 1115 [player prepareToPlay];
1114 1116 [player play];
  1117 + }
1115 1118 }
1116 1119 ///////////////////////////////////////////////////////////////////////////////////////////////////
1117 1120 - (void)stopPlayingSound {

0 comments on commit 06fed7a

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