Index: webkit/glue/webmediaplayer_impl.cc |
diff --git a/webkit/glue/webmediaplayer_impl.cc b/webkit/glue/webmediaplayer_impl.cc |
index 075439d4930f8312f3302487e9f0fb145ca33015..8e1394452ea3f785659a839bd9aaafb17d5ecf62 100644 |
--- a/webkit/glue/webmediaplayer_impl.cc |
+++ b/webkit/glue/webmediaplayer_impl.cc |
@@ -825,8 +825,12 @@ void WebMediaPlayerImpl::OnNetworkEvent() { |
// If we are inactive because we just finished receiving all the data, |
// do one final repaint to show final progress. |
if (bytesLoaded() == totalBytes() && |
- network_state_ != WebKit::WebMediaPlayer::Idle) |
+ network_state_ != WebKit::WebMediaPlayer::Idle) { |
Repaint(); |
+ |
+ SetNetworkState(WebKit::WebMediaPlayer::Loaded); |
+ } |
+ |
SetNetworkState(WebKit::WebMediaPlayer::Idle); |
} |
} |