Index: media/audio/fake_audio_consumer.cc |
diff --git a/media/audio/fake_audio_consumer.cc b/media/audio/fake_audio_consumer.cc |
index 95db9cd9e869e4b86bb242ad2de7a5d3dc0f35b9..aa19b5be74739e0711d19cefc4d2bbe79c5a4781 100644 |
--- a/media/audio/fake_audio_consumer.cc |
+++ b/media/audio/fake_audio_consumer.cc |
@@ -50,6 +50,8 @@ void FakeAudioConsumer::DoRead() { |
DCHECK(!read_cb_.is_null()); |
read_cb_.Run(audio_bus_.get()); |
+ if (read_cb_.is_null()) |
+ return; |
// Need to account for time spent here due to the cost of |read_cb_| as well |
// as the imprecision of PostDelayedTask(). |