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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 void VideoReceiveStream::SignalNetworkState(NetworkState state) { | 235 void VideoReceiveStream::SignalNetworkState(NetworkState state) { |
236 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 236 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
237 rtp_stream_receiver_.SignalNetworkState(state); | 237 rtp_stream_receiver_.SignalNetworkState(state); |
238 } | 238 } |
239 | 239 |
240 | 240 |
241 bool VideoReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { | 241 bool VideoReceiveStream::DeliverRtcp(const uint8_t* packet, size_t length) { |
242 return rtp_stream_receiver_.DeliverRtcp(packet, length); | 242 return rtp_stream_receiver_.DeliverRtcp(packet, length); |
243 } | 243 } |
244 | 244 |
245 void VideoReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) { | 245 bool VideoReceiveStream::OnRtpPacketReceive(RtpPacketReceived* packet) { |
246 rtp_stream_receiver_.OnRtpPacket(packet); | 246 return rtp_stream_receiver_.OnRtpPacketReceive(packet); |
247 } | 247 } |
248 | 248 |
249 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet, | 249 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet, |
250 size_t length) { | 250 size_t length) { |
251 return rtp_stream_receiver_.OnRecoveredPacket(packet, length); | 251 return rtp_stream_receiver_.OnRecoveredPacket(packet, length); |
252 } | 252 } |
253 | 253 |
254 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { | 254 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { |
255 RTC_DCHECK_RUN_ON(&worker_thread_checker_); | 255 RTC_DCHECK_RUN_ON(&worker_thread_checker_); |
256 rtp_stream_sync_.ConfigureSync(audio_syncable); | 256 rtp_stream_sync_.ConfigureSync(audio_syncable); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 rtp_stream_receiver_.FrameDecoded(frame->picture_id); | 483 rtp_stream_receiver_.FrameDecoded(frame->picture_id); |
484 } else { | 484 } else { |
485 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs | 485 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs |
486 << " ms, requesting keyframe."; | 486 << " ms, requesting keyframe."; |
487 RequestKeyFrame(); | 487 RequestKeyFrame(); |
488 } | 488 } |
489 return true; | 489 return true; |
490 } | 490 } |
491 } // namespace internal | 491 } // namespace internal |
492 } // namespace webrtc | 492 } // namespace webrtc |
OLD | NEW |