You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/06 01:38:28 UTC
[15/25] js commit: fix bad filename callback bug
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 <mi...@gmail.com>
Authored: Fri Oct 26 11:31:46 2012 +0800
Committer: wangmingfeng <mi...@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);
}
}
},