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

Unified Diff: media/blink/webmediaplayer_impl.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 | « media/blink/buffered_resource_loader_unittest.cc ('k') | media/filters/audio_clock_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index ab62772c2b205e9920bca514ee9a677d865f4d58..83dd8f0bfcef4643891db6123e5b1b0e9114ecbe 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -122,7 +122,7 @@ WebMediaPlayerImpl::WebMediaPlayerImpl(
opaque_(false),
paused_(true),
seeking_(false),
- playback_rate_(0.0f),
+ playback_rate_(0.0),
ended_(false),
pending_seek_(false),
pending_seek_seconds_(0.0f),
@@ -268,7 +268,7 @@ void WebMediaPlayerImpl::pause() {
const bool was_already_paused = paused_ || playback_rate_ == 0;
paused_ = true;
- pipeline_.SetPlaybackRate(0.0f);
+ pipeline_.SetPlaybackRate(0.0);
if (data_source_)
data_source_->MediaIsPaused();
UpdatePausedTime();
« no previous file with comments | « media/blink/buffered_resource_loader_unittest.cc ('k') | media/filters/audio_clock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698