You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/04/20 11:28:23 UTC
ios commit: Fixed CB-537 - media.seekTo fails with NSRangeException
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 <sh...@apache.org>
Authored: Fri Apr 20 02:28:12 2012 -0700
Committer: Shazron Abdullah <sh...@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;