incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: Fixed CB-537 - media.seekTo fails with NSRangeException
Date Fri, 20 Apr 2012 09:28:23 GMT
Updated Branches:
  refs/heads/master 4853cd11e -> fd94c7abe


Fixed CB-537 - media.seekTo fails with NSRangeException


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/fd94c7ab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/fd94c7ab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/fd94c7ab

Branch: refs/heads/master
Commit: fd94c7abefa96ea5c7eebd89c61830b2c97f7ba2
Parents: 4853cd1
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Apr 20 02:28:12 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Fri Apr 20 02:28:12 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVSound.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/fd94c7ab/CordovaLib/Classes/CDVSound.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVSound.m b/CordovaLib/Classes/CDVSound.m
index 03e9ed4..497f51f 100644
--- a/CordovaLib/Classes/CDVSound.m
+++ b/CordovaLib/Classes/CDVSound.m
@@ -377,7 +377,7 @@
 	NSString* mediaId = [arguments objectAtIndex:1];
 
 	CDVAudioFile* audioFile = [[self soundCache] objectForKey: mediaId];
-    double position = [[arguments objectAtIndex:3 ] doubleValue];
+    double position = [[arguments objectAtIndex:2 ] doubleValue];
 	
     if (audioFile != nil && audioFile.player != nil && position){
         double posInSeconds = position/1000;


Mime
View raw message