Commit bb761e12 authored by dalecurtis's avatar dalecurtis Committed by Commit bot

Fix one more edge case with WebMediaPlayerDelegate notifications.

Missed this one when testing earlier.

BUG=43667, 367785
TEST=DCHECKs no longer fire.

Review URL: https://codereview.chromium.org/563723006

Cr-Commit-Position: refs/heads/master@{#294517}
parent 2a848181
......@@ -358,9 +358,9 @@ void WebMediaPlayerImpl::setRate(double rate) {
rate = kMinRate;
else if (rate > kMaxRate)
rate = kMaxRate;
if (playback_rate_ == 0 && delegate_)
if (playback_rate_ == 0 && !paused_ && delegate_)
delegate_->DidPlay(this);
} else if (playback_rate_ != 0 && delegate_) {
} else if (playback_rate_ != 0 && !paused_ && delegate_) {
delegate_->DidPause(this);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment