aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorSam Zackrisson <saza@webrtc.org>2020-07-06 17:46:36 +0200
committerCommit Bot <commit-bot@chromium.org>2020-07-06 17:05:25 +0000
commita166a353fbc3091c5d227b52802ad75b0ebcad23 (patch)
treeb3740b778907d9af43003f564745198d6505efdf /audio
parentb3a6816b3ef976a2b127713d590777d6b41fea7e (diff)
downloadwebrtc-a166a353fbc3091c5d227b52802ad75b0ebcad23.tar.gz
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 <handellm@webrtc.org> Commit-Queue: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31638}
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_send_stream.h2
1 files changed, 1 insertions, 1 deletions
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_);