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

Unified Diff: chromecast/renderer/media/media_pipeline_proxy.cc

Issue 1094783002: Switch to double for time calculations using playback rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Making changes at chromecast side to fix trybots Created 5 years, 8 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 | « chromecast/renderer/media/media_pipeline_proxy.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/media_pipeline_proxy.cc
diff --git a/chromecast/renderer/media/media_pipeline_proxy.cc b/chromecast/renderer/media/media_pipeline_proxy.cc
index 7a454b166664e124028d8ad3c26f25e1525a9ccd..830ac0fe1340933ed4652812077687885dc12eba 100644
--- a/chromecast/renderer/media/media_pipeline_proxy.cc
+++ b/chromecast/renderer/media/media_pipeline_proxy.cc
@@ -34,7 +34,7 @@ class MediaPipelineProxyInternal {
void StartPlayingFrom(const base::TimeDelta& time);
void Flush(const ::media::PipelineStatusCB& status_cb);
void Stop();
- void SetPlaybackRate(float playback_rate);
+ void SetPlaybackRate(double playback_rate);
private:
void Shutdown();
@@ -135,7 +135,7 @@ void MediaPipelineProxyInternal::StartPlayingFrom(const base::TimeDelta& time) {
client_.error_cb.Run(::media::PIPELINE_ERROR_ABORT);
}
-void MediaPipelineProxyInternal::SetPlaybackRate(float playback_rate) {
+void MediaPipelineProxyInternal::SetPlaybackRate(double playback_rate) {
DCHECK(thread_checker_.CalledOnValidThread());
media_channel_proxy_->Send(scoped_ptr<IPC::Message>(
new CmaHostMsg_SetPlaybackRate(
@@ -274,7 +274,7 @@ void MediaPipelineProxy::Stop() {
FORWARD_ON_IO_THREAD(Stop);
}
-void MediaPipelineProxy::SetPlaybackRate(float playback_rate) {
+void MediaPipelineProxy::SetPlaybackRate(double playback_rate) {
DCHECK(thread_checker_.CalledOnValidThread());
FORWARD_ON_IO_THREAD(SetPlaybackRate, playback_rate);
}
« no previous file with comments | « chromecast/renderer/media/media_pipeline_proxy.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698