From a166a353fbc3091c5d227b52802ad75b0ebcad23 Mon Sep 17 00:00:00 2001 From: Sam Zackrisson Date: Mon, 6 Jul 2020 17:46:36 +0200 Subject: [PATCH] webrtc::AudioSendStream: Add lock annotation to audio_level_ This is a follow-up CL to https://webrtc-review.googlesource.com/c/src/+/176741 Bug: webrtc:11567 Change-Id: Ic64aec56534efc3229a1d9fa61552db4b83cae4c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178780 Reviewed-by: Markus Handell Commit-Queue: Sam Zackrisson Cr-Commit-Position: refs/heads/master@{#31638} --- audio/audio_send_stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio_send_stream.h b/audio/audio_send_stream.h index bb2e7b1e3a..7bc3183123 100644 --- a/audio/audio_send_stream.h +++ b/audio/audio_send_stream.h @@ -170,7 +170,7 @@ class AudioSendStream final : public webrtc::AudioSendStream, mutable Mutex audio_level_lock_; // Keeps track of audio level, total audio energy and total samples duration. // https://w3c.github.io/webrtc-stats/#dom-rtcaudiohandlerstats-totalaudioenergy - webrtc::voe::AudioLevel audio_level_; + webrtc::voe::AudioLevel audio_level_ RTC_GUARDED_BY(audio_level_lock_); BitrateAllocatorInterface* const bitrate_allocator_ RTC_GUARDED_BY(worker_queue_);