You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2013/07/11 23:53:18 UTC
git commit: [CB-1605] Warning cleanup! Closed an input stream.
Updated Branches:
refs/heads/master 1db360bea -> b08dc7fcb
[CB-1605] Warning cleanup! Closed an input stream.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/b08dc7fc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/b08dc7fc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/b08dc7fc
Branch: refs/heads/master
Commit: b08dc7fcbda2f82572d36689f2a2ca3f56c7f4d8
Parents: 1db360b
Author: Max Woghiren <ma...@gmail.com>
Authored: Thu Jul 11 17:43:12 2013 -0400
Committer: Max Woghiren <ma...@gmail.com>
Committed: Thu Jul 11 17:43:12 2013 -0400
----------------------------------------------------------------------
src/android/AudioPlayer.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/b08dc7fc/src/android/AudioPlayer.java
----------------------------------------------------------------------
diff --git a/src/android/AudioPlayer.java b/src/android/AudioPlayer.java
index 3df3d01..a33187f 100644
--- a/src/android/AudioPlayer.java
+++ b/src/android/AudioPlayer.java
@@ -538,6 +538,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);