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

Unified Diff: chromecast/media/cma/filters/cma_renderer.h

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/media/base/switching_media_renderer.cc ('k') | chromecast/media/cma/filters/cma_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/filters/cma_renderer.h
diff --git a/chromecast/media/cma/filters/cma_renderer.h b/chromecast/media/cma/filters/cma_renderer.h
index 62efd7cff032c6a790e95d83009dd40732781c71..e79bcc7b67b0a58965d9c1b2415ff0b70932f183 100644
--- a/chromecast/media/cma/filters/cma_renderer.h
+++ b/chromecast/media/cma/filters/cma_renderer.h
@@ -49,7 +49,7 @@ class CmaRenderer : public ::media::Renderer {
const base::Closure& waiting_for_decryption_key_cb) override;
void Flush(const base::Closure& flush_cb) override;
void StartPlayingFrom(base::TimeDelta time) override;
- void SetPlaybackRate(float playback_rate) override;
+ void SetPlaybackRate(double playback_rate) override;
void SetVolume(float volume) override;
base::TimeDelta GetMediaTime() override;
bool HasAudio() override;
@@ -136,7 +136,7 @@ class CmaRenderer : public ::media::Renderer {
// as playback progresses.
scoped_ptr< ::media::TimeDeltaInterpolator> time_interpolator_;
- float playback_rate_;
+ double playback_rate_;
base::WeakPtr<CmaRenderer> weak_this_;
base::WeakPtrFactory<CmaRenderer> weak_factory_;
« no previous file with comments | « chromecast/media/base/switching_media_renderer.cc ('k') | chromecast/media/cma/filters/cma_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698