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

Unified Diff: media/tools/player_wtl/movie.cc

Issue 10854151: Allow transitioning to HAVE_METADATA before pipeline initialization completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and address final comments Created 8 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 | « media/filters/pipeline_integration_test_base.cc ('k') | media/tools/player_x11/player_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_wtl/movie.cc
diff --git a/media/tools/player_wtl/movie.cc b/media/tools/player_wtl/movie.cc
index c29f8a07846cc6c37f8ebc94fa6839cce20bb3e2..984cff1bec412c6c1ac30ed83b8deb21576afb82 100644
--- a/media/tools/player_wtl/movie.cc
+++ b/media/tools/player_wtl/movie.cc
@@ -23,6 +23,8 @@
namespace media {
+static void OnBufferingState(media::Pipeline::BufferingState buffering_state) {}
+
Movie::Movie()
: audio_manager_(AudioManager::Create()),
enable_audio_(false),
@@ -95,7 +97,8 @@ bool Movie::Open(const wchar_t* url, VideoRendererBase* video_renderer) {
collection.Pass(),
media::PipelineStatusCB(),
media::PipelineStatusCB(),
- note.Callback());
+ note.Callback(),
+ base::Bind(&OnBufferingState));
// Wait until the pipeline is fully initialized.
note.Wait();
« no previous file with comments | « media/filters/pipeline_integration_test_base.cc ('k') | media/tools/player_x11/player_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698