diff options
author | Andrew Comminos <andrewcomminos@gmail.com> | 2014-01-22 02:00:28 +0400 |
---|---|---|
committer | Andrew Comminos <andrewcomminos@gmail.com> | 2014-01-22 02:00:28 +0400 |
commit | 0074f1aec19d70059c060660afa3e56ccae50f14 (patch) | |
tree | ace842dc08f94e3c37aa795e141b76cc07fbf1a9 /src/main/java | |
parent | 5cbf720fa1487c4e83c02798745278b7a48ede59 (diff) |
Fixed crash caused by uninitialized audiorecord instance.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/morlunk/jumble/audio/AudioInput.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/morlunk/jumble/audio/AudioInput.java b/src/main/java/com/morlunk/jumble/audio/AudioInput.java index 5224cd3..c89d50c 100644 --- a/src/main/java/com/morlunk/jumble/audio/AudioInput.java +++ b/src/main/java/com/morlunk/jumble/audio/AudioInput.java @@ -487,7 +487,7 @@ public class AudioInput extends ProtocolHandler implements Runnable { mPreprocessState.destroy(); if(mResampler != null) mResampler.destroy(); - mAudioRecord.release(); + if(mAudioRecord != null) mAudioRecord.release(); } @Override |