From 6d85252e9e804b9896a6042621e4be46f0e2a35b Mon Sep 17 00:00:00 2001 From: henrika Date: Thu, 9 Nov 2017 16:37:41 +0100 Subject: [PATCH] Add SetAudioPlayout and SetAudioRecording methods to the PeerConnection AP (follow-up) NOTRY=TRUE Bug: webrtc:7313 Change-Id: I43efb612144aa24069abf4cbe8c753137fb899f8 Reviewed-on: https://webrtc-review.googlesource.com/21301 Commit-Queue: Henrik Andreassson Reviewed-by: Fredrik Solenberg Cr-Commit-Position: refs/heads/master@{#20625} --- audio/audio_state.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/audio_state.cc b/audio/audio_state.cc index 14a86e5d3e..a1dd956a24 100644 --- a/audio/audio_state.cc +++ b/audio/audio_state.cc @@ -12,7 +12,6 @@ #include "modules/audio_device/include/audio_device.h" #include "rtc_base/atomicops.h" -#include "rtc_base/bind.h" #include "rtc_base/checks.h" #include "rtc_base/logging.h" #include "rtc_base/ptr_util.h" @@ -82,6 +81,7 @@ void AudioState::SetPlayout(bool enabled) { null_audio_poller_ = rtc::MakeUnique(&audio_transport_proxy_); } + voe->Release(); } void AudioState::SetRecording(bool enabled) { @@ -94,6 +94,7 @@ void AudioState::SetRecording(bool enabled) { // remember the setting for when it receives subsequent calls of // StartPlayout. voe->SetRecording(enabled); + voe->Release(); } // Reference count; implementation copied from rtc::RefCountedObject.