cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Backporting CB-1605
Date Wed, 16 Oct 2013 19:03:41 GMT
Updated Branches:
  refs/heads/2.9.x cdb49eaa1 -> 6a57a3c45


Backporting CB-1605


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/6a57a3c4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/6a57a3c4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/6a57a3c4

Branch: refs/heads/2.9.x
Commit: 6a57a3c452146ca042b737761cdaff971292fc01
Parents: cdb49ea
Author: Joe Bowser <bowserj@apache.org>
Authored: Wed Oct 16 12:03:03 2013 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Wed Oct 16 12:03:03 2013 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/AudioPlayer.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/6a57a3c4/framework/src/org/apache/cordova/AudioPlayer.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/AudioPlayer.java b/framework/src/org/apache/cordova/AudioPlayer.java
index 0170728..09e0311 100644
--- a/framework/src/org/apache/cordova/AudioPlayer.java
+++ b/framework/src/org/apache/cordova/AudioPlayer.java
@@ -537,6 +537,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener,
On
                 if (fp.exists()) {
                     FileInputStream fileInputStream = new FileInputStream(file);
                     this.player.setDataSource(fileInputStream.getFD());
+                    fileInputStream.close();
                 }
                 else {
                     this.player.setDataSource("/sdcard/" + file);


Mime
View raw message