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

Unified Diff: webkit/glue/webmediaplayer_impl.cc

Issue 173447: Merge 24251 - Fixes bug where changing the src of an audio/video element woul... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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: webkit/glue/webmediaplayer_impl.cc
===================================================================
--- webkit/glue/webmediaplayer_impl.cc (revision 24400)
+++ webkit/glue/webmediaplayer_impl.cc (working copy)
@@ -537,19 +537,17 @@
void WebMediaPlayerImpl::SetNetworkState(
WebKit::WebMediaPlayer::NetworkState state) {
DCHECK(MessageLoop::current() == main_loop_);
- if (network_state_ != state) {
- network_state_ = state;
- GetClient()->networkStateChanged();
- }
+ // Always notify to ensure client has the latest value.
+ network_state_ = state;
+ GetClient()->networkStateChanged();
}
void WebMediaPlayerImpl::SetReadyState(
WebKit::WebMediaPlayer::ReadyState state) {
DCHECK(MessageLoop::current() == main_loop_);
- if (ready_state_ != state) {
- ready_state_ = state;
- GetClient()->readyStateChanged();
- }
+ // Always notify to ensure client has the latest value.
+ ready_state_ = state;
+ GetClient()->readyStateChanged();
}
void WebMediaPlayerImpl::Destroy() {
Property changes on: webkit\glue\webmediaplayer_impl.cc
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/webkit/glue/webmediaplayer_impl.cc:r24251
« 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