summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-31 10:34:38 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-31 10:34:38 +0000
commita7b961ed9aceb73d7cf51c747f4239ec77bdc7e7 (patch)
tree2cfc0fd1efac52aeb721ff00ef6764049dd3a146 /media
parent9c96421fb4f0ea8ff6a186f60bab613df5e24f38 (diff)
downloadchromium_src-a7b961ed9aceb73d7cf51c747f4239ec77bdc7e7.zip
chromium_src-a7b961ed9aceb73d7cf51c747f4239ec77bdc7e7.tar.gz
chromium_src-a7b961ed9aceb73d7cf51c747f4239ec77bdc7e7.tar.bz2
Changing a NOTREACHED to a LOG(WARNING) for cases when a mic isn't connected.
TEST=Removes a DCHECK that we would hit on machines without a mic. BUG=none Review URL: http://codereview.chromium.org/8335005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/audio/win/audio_low_latency_input_win.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/audio/win/audio_low_latency_input_win.cc b/media/audio/win/audio_low_latency_input_win.cc
index 5242b67..d5998ed 100644
--- a/media/audio/win/audio_low_latency_input_win.cc
+++ b/media/audio/win/audio_low_latency_input_win.cc
@@ -207,7 +207,10 @@ double WASAPIAudioInputStream::HardwareSampleRate(ERole device_role) {
device_role,
endpoint_device.Receive());
if (FAILED(hr)) {
- NOTREACHED() << "error code: " << hr;
+ // This will happen if there's no audio capture device found or available
+ // (e.g. some audio cards that have inputs will still report them as
+ // "not found" when no mic is plugged into the input jack).
+ LOG(WARNING) << "No audio end point: " << std::hex << hr;
return 0.0;
}