diff options
| -rw-r--r-- | media/java/android/media/AudioRecord.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/java/android/media/AudioRecord.java b/media/java/android/media/AudioRecord.java index eeb7655abff9..ce9b07dd0c0e 100644 --- a/media/java/android/media/AudioRecord.java +++ b/media/java/android/media/AudioRecord.java @@ -838,6 +838,7 @@ public class AudioRecord implements AudioRouting, MicrophoneDirection, } if (mAudioCapturePolicy != null) { AudioManager.unregisterAudioPolicyAsyncStatic(mAudioCapturePolicy); + mAudioCapturePolicy = null; } native_release(); mState = STATE_UNINITIALIZED; |