Chromium Code Reviews| Index: media/audio/mac/audio_low_latency_output_mac.cc |
| =================================================================== |
| --- media/audio/mac/audio_low_latency_output_mac.cc (revision 113210) |
| +++ media/audio/mac/audio_low_latency_output_mac.cc (working copy) |
| @@ -175,6 +175,10 @@ |
| void AUAudioOutputStream::Start(AudioSourceCallback* callback) { |
| DCHECK(callback); |
| + DLOG_IF(ERROR, !output_unit_) << "Must call Open() first"; |
|
henrika (OOO until Aug 14)
2011/12/08 20:30:47
Can we make the error message also reflect the fac
tommi (sloooow) - chröme
2011/12/08 20:47:02
good point. Changed all occurrences to "Open() ha
|
| + if (!output_unit_) |
| + return; |
| + |
| source_ = callback; |
| AudioOutputUnitStart(output_unit_); |