| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 void VideoReceiveStream::SignalNetworkState(NetworkState state) { | 249 void VideoReceiveStream::SignalNetworkState(NetworkState state) { |
| 250 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 250 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
| 251 rtp_stream_receiver_.SignalNetworkState(state); | 251 rtp_stream_receiver_.SignalNetworkState(state); |
| 252 } | 252 } |
| 253 | 253 |
| 254 | 254 |
| 255 bool VideoReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { | 255 bool VideoReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { |
| 256 return rtp_stream_receiver_.DeliverRtcp(packet, length); | 256 return rtp_stream_receiver_.DeliverRtcp(packet, length); |
| 257 } | 257 } |
| 258 | 258 |
| 259 bool VideoReceiveStream::DeliverRtp(const uint8_t* packet, | 259 const RtpPacketReceiver::RtpConfig& VideoReceiveStream::rtp_config() const { |
| 260 size_t length, | 260 return rtp_stream_receiver_.rtp_config(); |
| 261 const PacketTime& packet_time) { | 261 } |
| 262 return rtp_stream_receiver_.DeliverRtp(packet, length, packet_time); | 262 |
| 263 bool VideoReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) { |
| 264 return rtp_stream_receiver_.OnRtpPacket(packet); |
| 263 } | 265 } |
| 264 | 266 |
| 265 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet, | 267 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet, |
| 266 size_t length) { | 268 size_t length) { |
| 267 return rtp_stream_receiver_.OnRecoveredPacket(packet, length); | 269 return rtp_stream_receiver_.OnRecoveredPacket(packet, length); |
| 268 } | 270 } |
| 269 | 271 |
| 270 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { | 272 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { |
| 271 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 273 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
| 272 rtp_stream_sync_.ConfigureSync(audio_syncable); | 274 rtp_stream_sync_.ConfigureSync(audio_syncable); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs | 507 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs |
| 506 << " ms, requesting keyframe."; | 508 << " ms, requesting keyframe."; |
| 507 RequestKeyFrame(); | 509 RequestKeyFrame(); |
| 508 } | 510 } |
| 509 } else { | 511 } else { |
| 510 video_receiver_.Decode(kMaxDecodeWaitTimeMs); | 512 video_receiver_.Decode(kMaxDecodeWaitTimeMs); |
| 511 } | 513 } |
| 512 } | 514 } |
| 513 } // namespace internal | 515 } // namespace internal |
| 514 } // namespace webrtc | 516 } // namespace webrtc |
| OLD | NEW |