diff options
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/webmediaplayer_impl.cc | 3 | ||||
-rw-r--r-- | webkit/glue/webmediaplayer_impl.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/webkit/glue/webmediaplayer_impl.cc b/webkit/glue/webmediaplayer_impl.cc index 00c6834..9eae37b 100644 --- a/webkit/glue/webmediaplayer_impl.cc +++ b/webkit/glue/webmediaplayer_impl.cc @@ -471,6 +471,9 @@ void WebMediaPlayerImpl::OnPipelineInitialize() { // as format error. Should post a task to call to |webmediaplayer_|. SetNetworkState(WebKit::WebMediaPlayer::FormatError); } + + // Repaint to trigger UI update. + Repaint(); } void WebMediaPlayerImpl::OnPipelineSeek() { diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h index bd4a6e8..f6d7fd3 100644 --- a/webkit/glue/webmediaplayer_impl.h +++ b/webkit/glue/webmediaplayer_impl.h @@ -181,7 +181,7 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer, virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); - // True if a video is loaded. + // True if the loaded media has a playable video/audio track. virtual bool hasVideo() const; virtual bool hasAudio() const; |