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

Side by Side Diff: webrtc/audio/audio_receive_stream.cc

Issue 1888903003: Network thread (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/webrtcsession_unittest.cc ('k') | webrtc/audio/audio_send_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 void AudioReceiveStream::Start() { 136 void AudioReceiveStream::Start() {
137 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 137 RTC_DCHECK(thread_checker_.CalledOnValidThread());
138 } 138 }
139 139
140 void AudioReceiveStream::Stop() { 140 void AudioReceiveStream::Stop() {
141 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 141 RTC_DCHECK(thread_checker_.CalledOnValidThread());
142 } 142 }
143 143
144 void AudioReceiveStream::SignalNetworkState(NetworkState state) { 144 void AudioReceiveStream::SignalNetworkState(NetworkState state) {}
145 RTC_DCHECK(thread_checker_.CalledOnValidThread());
146 }
147 145
148 bool AudioReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { 146 bool AudioReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) {
149 // TODO(solenberg): Tests call this function on a network thread, libjingle 147 // TODO(solenberg): Tests call this function on a network thread, libjingle
150 // calls on the worker thread. We should move towards always using a network 148 // calls on the worker thread. We should move towards always using a network
151 // thread. Then this check can be enabled. 149 // thread. Then this check can be enabled.
152 // RTC_DCHECK(!thread_checker_.CalledOnValidThread()); 150 // RTC_DCHECK(!thread_checker_.CalledOnValidThread());
153 return false; 151 return false;
154 } 152 }
155 153
156 bool AudioReceiveStream::DeliverRtp(const uint8_t* packet, 154 bool AudioReceiveStream::DeliverRtp(const uint8_t* packet,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 238
241 VoiceEngine* AudioReceiveStream::voice_engine() const { 239 VoiceEngine* AudioReceiveStream::voice_engine() const {
242 internal::AudioState* audio_state = 240 internal::AudioState* audio_state =
243 static_cast<internal::AudioState*>(audio_state_.get()); 241 static_cast<internal::AudioState*>(audio_state_.get());
244 VoiceEngine* voice_engine = audio_state->voice_engine(); 242 VoiceEngine* voice_engine = audio_state->voice_engine();
245 RTC_DCHECK(voice_engine); 243 RTC_DCHECK(voice_engine);
246 return voice_engine; 244 return voice_engine;
247 } 245 }
248 } // namespace internal 246 } // namespace internal
249 } // namespace webrtc 247 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/webrtcsession_unittest.cc ('k') | webrtc/audio/audio_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698