| Index: media/audio/mac/audio_low_latency_input_mac.cc
|
| ===================================================================
|
| --- media/audio/mac/audio_low_latency_input_mac.cc (revision 113210)
|
| +++ media/audio/mac/audio_low_latency_input_mac.cc (working copy)
|
| @@ -215,7 +215,8 @@
|
|
|
| void AUAudioInputStream::Start(AudioInputCallback* callback) {
|
| DCHECK(callback);
|
| - if (started_)
|
| + DLOG_IF(ERROR, !audio_unit_) << "Open() has not been called successfully";
|
| + if (started_ || !audio_unit_)
|
| return;
|
| sink_ = callback;
|
| OSStatus result = AudioOutputUnitStart(audio_unit_);
|
|
|