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

Unified Diff: chromecast/media/cma/pipeline/av_pipeline_impl.cc

Issue 903083003: Chromecast: change BrowserCdmCast threading model. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: chromecast/media/cma/pipeline/av_pipeline_impl.cc
diff --git a/chromecast/media/cma/pipeline/av_pipeline_impl.cc b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
index fbdbe9ad3589b94830daec84fc810eb8f9ac00a5..2e2da54facea855610ce4925b4979c3927d82fbb 100644
--- a/chromecast/media/cma/pipeline/av_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
@@ -19,6 +19,7 @@
#include "chromecast/media/cma/base/decoder_buffer_base.h"
#include "chromecast/media/cma/pipeline/decrypt_util.h"
#include "media/base/audio_decoder_config.h"
+#include "media/base/bind_to_current_loop.h"
#include "media/base/decrypt_config.h"
namespace chromecast {
@@ -187,8 +188,10 @@ void AvPipelineImpl::SetCdm(BrowserCdmCast* media_keys) {
media_keys_ = media_keys;
media_keys_callback_id_ = media_keys_->RegisterPlayer(
- base::Bind(&AvPipelineImpl::OnCdmStateChanged, weak_this_),
- base::Bind(&AvPipelineImpl::OnCdmDestroyed, weak_this_));
+ ::media::BindToCurrentLoop(
+ base::Bind(&AvPipelineImpl::OnCdmStateChanged, weak_this_)),
+ ::media::BindToCurrentLoop(
+ base::Bind(&AvPipelineImpl::OnCdmDestroyed, weak_this_)));
}
void AvPipelineImpl::OnEos() {

Powered by Google App Engine
This is Rietveld 408576698