diff options
Diffstat (limited to 'media/audio/pulse/pulse_output.cc')
-rw-r--r-- | media/audio/pulse/pulse_output.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/audio/pulse/pulse_output.cc b/media/audio/pulse/pulse_output.cc index 5010a9e..5b55509 100644 --- a/media/audio/pulse/pulse_output.cc +++ b/media/audio/pulse/pulse_output.cc @@ -383,8 +383,12 @@ void PulseAudioOutputStream::WriteToStream(size_t bytes_to_write, void PulseAudioOutputStream::Start(AudioSourceCallback* callback) { DCHECK_EQ(message_loop_, MessageLoop::current()); - CHECK(callback); + DLOG_IF(ERROR, !playback_handle_) + << "Open() has not been called successfully"; + if (!playback_handle_) + return; + source_callback_ = callback; // Clear buffer, it might still have data in it. |