Index: media/audio/audio_output_controller.cc |
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc |
index 994e8f481148071f86872959c6b64f0db2694cc4..92f9f25de530d13f58bc3075c1b6e263645efc08 100644 |
--- a/media/audio/audio_output_controller.cc |
+++ b/media/audio/audio_output_controller.cc |
@@ -478,8 +478,15 @@ void AudioOutputController::WedgeCheck() { |
// If we should be playing and we haven't, that's a wedge. |
if (state_ == kPlaying) { |
- UMA_HISTOGRAM_BOOLEAN("Media.AudioOutputControllerPlaybackStartupSuccess", |
- base::AtomicRefCountIsOne(&on_more_io_data_called_)); |
+ const bool playback_success = |
+ base::AtomicRefCountIsOne(&on_more_io_data_called_); |
+ |
+ UMA_HISTOGRAM_BOOLEAN( |
+ "Media.AudioOutputControllerPlaybackStartupSuccess", playback_success); |
+ |
+ // Let the AudioManager try and fix it. |
+ if (!playback_success) |
+ audio_manager_->FixWedgedAudio(); |
} |
} |