audio_processing/agc: Put entire method set_output_will_be_muted() under lock
Setting the member value output_will_be_muted_ in set_output_will_be_muted() was done before the lock. This caused a data race. BUG=4477 R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44929004 Cr-Commit-Position: refs/heads/master@{#8877}
This commit is contained in:
@ -210,7 +210,7 @@ class AudioProcessingImpl : public AudioProcessing {
|
||||
int delay_offset_ms_;
|
||||
bool was_stream_delay_set_;
|
||||
|
||||
bool output_will_be_muted_;
|
||||
bool output_will_be_muted_ GUARDED_BY(crit_);
|
||||
|
||||
bool key_pressed_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user