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

Unified Diff: media/base/pipeline.cc

Issue 879483004: Don't touch the renderer without the lock! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline.cc
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
index 88abe19ad8207acbc55cafbe1addbb0fd868c489..685aae6bfedc5eed961764ef03743465a237cfa2 100644
--- a/media/base/pipeline.cc
+++ b/media/base/pipeline.cc
@@ -606,6 +606,7 @@ void Pipeline::SeekTask(TimeDelta time, const PipelineStatusCB& seek_cb) {
void Pipeline::SetCdmTask(CdmContext* cdm_context,
const CdmAttachedCB& cdm_attached_cb) {
+ base::AutoLock auto_lock(lock_);
if (!renderer_) {
pending_cdm_context_ = cdm_context;
cdm_attached_cb.Run(true);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698