Avoid the render lock in AudioProcessingImpl::ProcessStream
It seems unnecessary to lock it if not actually reinitializing. Bug: webrtc:10205 Change-Id: Ib3292e1d640a92a7df77400aebe9583cf877f824 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/115460 Commit-Queue: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28060}
This commit is contained in:

committed by
Commit Bot

parent
a0e9943ca6
commit
4b27648d8b
@ -221,16 +221,9 @@ class AudioProcessingImpl : public AudioProcessing {
|
||||
// that the capture thread blocks the render thread.
|
||||
// The struct is modified in a single-threaded manner by holding both the
|
||||
// render and capture locks.
|
||||
int MaybeInitialize(const ProcessingConfig& config, bool force_initialization)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_render_);
|
||||
|
||||
int MaybeInitializeRender(const ProcessingConfig& processing_config)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_render_);
|
||||
|
||||
int MaybeInitializeCapture(const ProcessingConfig& processing_config,
|
||||
bool force_initialization)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_render_);
|
||||
|
||||
// Method for updating the state keeping track of the active submodules.
|
||||
// Returns a bool indicating whether the state has changed.
|
||||
bool UpdateActiveSubmoduleStates()
|
||||
|
Reference in New Issue
Block a user