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

Unified Diff: content/renderer/media/webmediaplayer_impl.cc

Issue 303403002: Eliminate MediaPlayer & MediaPlayerClient abstractions(ground work for eliminating rate APIs) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eliminate MediaPlayer & MediaPlayerClient abstractions(ground work for eliminating rate APIs) Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_impl.cc
diff --git a/content/renderer/media/webmediaplayer_impl.cc b/content/renderer/media/webmediaplayer_impl.cc
index 6aa009a18f401e9d954f6649fbfd9c073f53c634..26ee409d4c6c97103c87f7b8ce530012ce409b9b 100644
--- a/content/renderer/media/webmediaplayer_impl.cc
+++ b/content/renderer/media/webmediaplayer_impl.cc
@@ -402,6 +402,9 @@ void WebMediaPlayerImpl::seek(double seconds) {
void WebMediaPlayerImpl::setRate(double rate) {
DCHECK(main_loop_->BelongsToCurrentThread());
+ if (rate == playback_rate_)
acolwell GONE FROM CHROMIUM 2014/06/02 22:37:02 Do we really need this? Shouldn't the caller in Bl
+ return;
+
// TODO(kylep): Remove when support for negatives is added. Also, modify the
// following checks so rewind uses reasonable values also.
if (rate < 0.0)
« 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