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

Unified Diff: media/audio/linux/alsa_output.cc

Issue 9580038: Convert uses of int ms to TimeDelta in media/audio. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 months 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 | « media/audio/audio_output_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/linux/alsa_output.cc
diff --git a/media/audio/linux/alsa_output.cc b/media/audio/linux/alsa_output.cc
index 0cd2d0c5e095b431c109590f13498353e5d73ec0..a57c2763511e955667d542a6798c7ce3275527ee 100644
--- a/media/audio/linux/alsa_output.cc
+++ b/media/audio/linux/alsa_output.cc
@@ -604,10 +604,11 @@ void AlsaPcmOutputStream::ScheduleNextWrite(bool source_exhausted) {
} else {
// TODO(ajwong): Measure the reliability of the delay interval. Use
// base/metrics/histogram.h.
- manager_->GetMessageLoop()->PostDelayedTask(FROM_HERE,
+ manager_->GetMessageLoop()->PostDelayedTask(
+ FROM_HERE,
base::Bind(&AlsaPcmOutputStream::WriteTask,
weak_factory_.GetWeakPtr()),
- next_fill_time_ms);
+ base::TimeDelta::FromMilliseconds(next_fill_time_ms));
}
}
}
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698