Fixes a crash in VoE when unregistering JNI hooks.
BUG=11695087 R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/3939004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5144 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -126,7 +126,6 @@ int32_t OpenSlesInput::RecordingIsAvailable(bool& available) { // NOLINT
|
||||
|
||||
int32_t OpenSlesInput::InitRecording() {
|
||||
assert(initialized_);
|
||||
assert(!rec_initialized_);
|
||||
rec_initialized_ = true;
|
||||
return 0;
|
||||
}
|
||||
@ -165,6 +164,7 @@ int32_t OpenSlesInput::StartRecording() {
|
||||
int32_t OpenSlesInput::StopRecording() {
|
||||
StopCbThreads();
|
||||
DestroyAudioRecorder();
|
||||
recording_ = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user