Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: media/audio/audio_output_controller.cc

Issue 64493003: Ensure the wedge timer isn't started until after StartStream(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller.cc
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc
index 74853e09492418e8a233e3dd99b051fd3d4609d5..1e7892660b775125686e5f7843407a057f7f0095 100644
--- a/media/audio/audio_output_controller.cc
+++ b/media/audio/audio_output_controller.cc
@@ -198,6 +198,9 @@ void AudioOutputController::DoPlay() {
power_poll_callback_.callback().Run();
#endif
+ AllowEntryToOnMoreIOData();
+ stream_->Start(this);
+
// For UMA tracking purposes, start the wedge detection timer. This allows us
// to record statistics about the number of wedged playbacks in the field.
//
@@ -215,9 +218,6 @@ void AudioOutputController::DoPlay() {
&AudioOutputController::WedgeCheck);
on_more_io_data_called_ = 0;
miu 2013/11/07 23:18:41 Should this statement (setting on_more_io_data_cal
DaleCurtis 2013/11/07 23:22:54 Good catch!
- AllowEntryToOnMoreIOData();
- stream_->Start(this);
-
handler_->OnPlaying();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698