OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |