Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: webrtc/audio/audio_send_stream.cc

Issue 1741933002: Prevent a voice channel from sending data before a renderer is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Modifying copyright header to satisfy presubmit bot. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/webrtcsession_unittest.cc ('k') | webrtc/media/base/audiorenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_send_stream.cc
diff --git a/webrtc/audio/audio_send_stream.cc b/webrtc/audio/audio_send_stream.cc
index c18331cea6c21dc83766ee869585ec0e9a42437a..160a818323b139381c06ca16164b3d8b667e8491 100644
--- a/webrtc/audio/audio_send_stream.cc
+++ b/webrtc/audio/audio_send_stream.cc
@@ -97,10 +97,20 @@ AudioSendStream::~AudioSendStream() {
void AudioSendStream::Start() {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ ScopedVoEInterface<VoEBase> base(voice_engine());
+ int error = base->StartSend(config_.voe_channel_id);
+ if (error != 0) {
+ LOG(LS_ERROR) << "AudioSendStream::Start failed with error: " << error;
+ }
}
void AudioSendStream::Stop() {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ ScopedVoEInterface<VoEBase> base(voice_engine());
+ int error = base->StopSend(config_.voe_channel_id);
+ if (error != 0) {
+ LOG(LS_ERROR) << "AudioSendStream::Stop failed with error: " << error;
+ }
}
void AudioSendStream::SignalNetworkState(NetworkState state) {
« no previous file with comments | « webrtc/api/webrtcsession_unittest.cc ('k') | webrtc/media/base/audiorenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698