cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [15/25] js commit: fix bad filename callback bug
Date Tue, 06 Nov 2012 00:38:28 GMT
fix bad filename callback bug

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

Branch: refs/heads/master
Commit: 2148b3e0611238a49cdf6dc17a8fb6e2a525388c
Parents: 3966b1f
Author: wangmingfeng <mingfengwang01@gmail.com>
Authored: Fri Oct 26 11:31:46 2012 +0800
Committer: wangmingfeng <mingfengwang01@gmail.com>
Committed: Fri Oct 26 11:31:46 2012 +0800

----------------------------------------------------------------------
 lib/windows8/plugin/windows8/MediaProxy.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/2148b3e0/lib/windows8/plugin/windows8/MediaProxy.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/MediaProxy.js b/lib/windows8/plugin/windows8/MediaProxy.js
index a9d0070..4da3a29 100644
--- a/lib/windows8/plugin/windows8/MediaProxy.js
+++ b/lib/windows8/plugin/windows8/MediaProxy.js
@@ -48,7 +48,9 @@ module.exports = {
                 }
                 Media.onStatus(id, Media.MEDIA_DURATION, dur);
             } else {
-                lose("Invalid file type");
+                var result = new Object();
+                result.code = MediaError.MEDIA_ERR_ABORTED;
+                lose(result);
             }
         }
     },


Mime
View raw message