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

Unified Diff: content/renderer/media/gpu/rtc_video_decoder.cc

Issue 2339043002: Consistently lock RTCVideoDecoder::state_. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 4 years, 3 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: content/renderer/media/gpu/rtc_video_decoder.cc
diff --git a/content/renderer/media/gpu/rtc_video_decoder.cc b/content/renderer/media/gpu/rtc_video_decoder.cc
index 10ec6f99af451d7a9abab144bf27b893c4571b6f..19881ae5c5a228c5a820b1ed3687d04f2ccdba94 100644
--- a/content/renderer/media/gpu/rtc_video_decoder.cc
+++ b/content/renderer/media/gpu/rtc_video_decoder.cc
@@ -672,8 +672,10 @@ void RTCVideoDecoder::ResetInternal() {
vda_->Reset();
} else {
CreateVDA(vda_codec_profile_, nullptr);
- if (vda_)
+ if (vda_) {
+ base::AutoLock auto_lock(lock_);
state_ = INITIALIZED;
+ }
}
}
« 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