Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1646)

Unified Diff: content/renderer/media/webrtc_audio_device_impl.cc

Issue 7661017: Refactor AudioInputDevice to remove race conditions and allow more flexible calling sequences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Minor changes based on review by Andrew Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/audio_input_message_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_device_impl.cc
===================================================================
--- content/renderer/media/webrtc_audio_device_impl.cc (revision 98001)
+++ content/renderer/media/webrtc_audio_device_impl.cc (working copy)
@@ -389,8 +389,9 @@
LOG(WARNING) << "Recording is already active";
return 0;
}
- recording_ = audio_input_device_->Start();
- return (recording_ ? 0 : -1);
+ audio_input_device_->Start();
+ recording_ = true;
+ return 0;
}
int32_t WebRtcAudioDeviceImpl::StopRecording() {
« no previous file with comments | « content/renderer/media/audio_input_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698