Commit 3a9f3a8b authored by dalecurtis's avatar dalecurtis Committed by Commit bot

Don't touch the renderer without the lock!

It's accessed concurrently on the render thread and the media thread internally and externally.

BUG=452093
TEST=none

Review URL: https://codereview.chromium.org/879483004

Cr-Commit-Position: refs/heads/master@{#313158}
parent 98b7aaad
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment