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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 2693123002: Make Call::OnRecoveredPacket parse RTP header and call OnRtpPacket. (Closed)
Patch Set: Update fuzzer. Created 3 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
OLDNEW
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void VideoReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) {
246 rtp_stream_receiver_.OnRtpPacket(packet); 246 rtp_stream_receiver_.OnRtpPacket(packet);
247 } 247 }
248 248
249 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet,
250 size_t length) {
251 return rtp_stream_receiver_.OnRecoveredPacket(packet, length);
252 }
253
254 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { 249 void VideoReceiveStream::SetSync(Syncable* audio_syncable) {
255 RTC_DCHECK_RUN_ON(&worker_thread_checker_); 250 RTC_DCHECK_RUN_ON(&worker_thread_checker_);
256 rtp_stream_sync_.ConfigureSync(audio_syncable); 251 rtp_stream_sync_.ConfigureSync(audio_syncable);
257 } 252 }
258 253
259 void VideoReceiveStream::Start() { 254 void VideoReceiveStream::Start() {
260 RTC_DCHECK_RUN_ON(&worker_thread_checker_); 255 RTC_DCHECK_RUN_ON(&worker_thread_checker_);
261 if (decode_thread_.IsRunning()) 256 if (decode_thread_.IsRunning())
262 return; 257 return;
263 258
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 rtp_stream_receiver_.FrameDecoded(frame->picture_id); 478 rtp_stream_receiver_.FrameDecoded(frame->picture_id);
484 } else { 479 } else {
485 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs 480 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs
486 << " ms, requesting keyframe."; 481 << " ms, requesting keyframe.";
487 RequestKeyFrame(); 482 RequestKeyFrame();
488 } 483 }
489 return true; 484 return true;
490 } 485 }
491 } // namespace internal 486 } // namespace internal
492 } // namespace webrtc 487 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698