cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject cordova-plugin-media-capture git commit: CB-9249 Fix iOS warnings in Media Capture plugin Part 2
Date Wed, 02 Sep 2015 21:25:59 GMT
Repository: cordova-plugin-media-capture
Updated Branches:
  refs/heads/master 4c85fa5f1 -> 73e87aa86


CB-9249 Fix iOS warnings in Media Capture plugin Part 2


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/73e87aa8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/73e87aa8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/73e87aa8

Branch: refs/heads/master
Commit: 73e87aa86444af2fb3866b2aaaca2a1ab2bf1007
Parents: 4c85fa5
Author: Simon MacDonald <simon.macdonald@gmail.com>
Authored: Wed Sep 2 16:11:00 2015 -0400
Committer: Simon MacDonald <simon.macdonald@gmail.com>
Committed: Wed Sep 2 16:11:00 2015 -0400

----------------------------------------------------------------------
 src/ios/CDVCapture.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/73e87aa8/src/ios/CDVCapture.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVCapture.m b/src/ios/CDVCapture.m
index ff37b24..8361444 100644
--- a/src/ios/CDVCapture.m
+++ b/src/ios/CDVCapture.m
@@ -516,7 +516,7 @@
         result = [self processImage:image type:cameraPicker.mimeType forCallbackId:callbackId];
     } else if ([mediaType isEqualToString:(NSString*)kUTTypeMovie]) {
         // process video
-        NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
+        NSString* moviePath = [(NSURL *)[info objectForKey:UIImagePickerControllerMediaURL]
path];
         if (moviePath) {
             result = [self processVideo:moviePath forCallbackId:callbackId];
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message