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

Unified Diff: webkit/glue/media/buffered_data_source.cc

Issue 8496044: Repaint video controls when buffering during pause. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 | webkit/glue/webmediaplayer_impl.cc » ('j') | webkit/glue/webmediaplayer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/buffered_data_source.cc
diff --git a/webkit/glue/media/buffered_data_source.cc b/webkit/glue/media/buffered_data_source.cc
index a3f43cf5d2bb218d092bfcb8f9b73a0c512215db..4abbba6c764530bc0ccd49466d522897383cb03a 100644
--- a/webkit/glue/media/buffered_data_source.cc
+++ b/webkit/glue/media/buffered_data_source.cc
@@ -644,7 +644,10 @@ void BufferedDataSource::NetworkEventCallback() {
is_downloading_data_ = is_downloading_data;
if (host())
host()->SetNetworkActivity(is_downloading_data);
- }
+ } else if (media_is_paused_ && host())
scherkus (not reviewing) 2011/11/09 03:45:28 nit: if one if branch has {} then all branches get
DaleCurtis 2011/11/09 18:30:02 Done.
+ // When paused forward all network events to ensure buffering progress is
+ // displayed properly.
+ host()->SetNetworkActivity(is_downloading_data);
buffered_bytes_ = buffered_position + 1;
if (host())
« no previous file with comments | « no previous file | webkit/glue/webmediaplayer_impl.cc » ('j') | webkit/glue/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698