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

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

Issue 8707001: Resolves crash related to conflict with latest WebRTC (1008) and the WebRTCAudioDeviceTest unit t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « no previous file | 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 111590)
+++ content/renderer/media/webrtc_audio_device_impl.cc (working copy)
@@ -828,9 +828,8 @@
}
int32_t WebRtcAudioDeviceImpl::StereoPlayoutIsAvailable(bool* available) const {
- DVLOG(2) << "WARNING: WebRtcAudioDeviceImpl::StereoPlayoutIsAvailable() "
- << "NOT IMPLEMENTED";
- *available = false;
+ DCHECK(initialized_) << "Init() must be called first.";
+ *available = (output_channels_ == 2);
return 0;
}
@@ -848,8 +847,8 @@
int32_t WebRtcAudioDeviceImpl::StereoRecordingIsAvailable(
bool* available) const {
- DVLOG(2) << "WARNING: WebRtcAudioDeviceImpl::StereoRecordingIsAvailable() "
- << "NOT IMPLEMENTED";
+ DCHECK(initialized_) << "Init() must be called first.";
+ *available = (input_channels_ == 2);
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698