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

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

Issue 2693123002: Make Call::OnRecoveredPacket parse RTP header and call OnRtpPacket. (Closed)
Patch Set: Created 3 years, 10 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void VideoReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) { 259 void VideoReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) {
260 rtp_stream_receiver_.OnRtpPacket(packet); 260 rtp_stream_receiver_.OnRtpPacket(packet);
261 } 261 }
262 262
263 bool VideoReceiveStream::OnRecoveredPacket(const uint8_t* packet,
264 size_t length) {
265 return rtp_stream_receiver_.OnRecoveredPacket(packet, length);
266 }
267
268 void VideoReceiveStream::SetSync(Syncable* audio_syncable) { 263 void VideoReceiveStream::SetSync(Syncable* audio_syncable) {
269 RTC_DCHECK_RUN_ON(&worker_thread_checker_); 264 RTC_DCHECK_RUN_ON(&worker_thread_checker_);
270 rtp_stream_sync_.ConfigureSync(audio_syncable); 265 rtp_stream_sync_.ConfigureSync(audio_syncable);
271 } 266 }
272 267
273 void VideoReceiveStream::Start() { 268 void VideoReceiveStream::Start() {
274 RTC_DCHECK_RUN_ON(&worker_thread_checker_); 269 RTC_DCHECK_RUN_ON(&worker_thread_checker_);
275 if (decode_thread_.IsRunning()) 270 if (decode_thread_.IsRunning())
276 return; 271 return;
277 272
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs 494 LOG(LS_WARNING) << "No decodable frame in " << kMaxWaitForFrameMs
500 << " ms, requesting keyframe."; 495 << " ms, requesting keyframe.";
501 RequestKeyFrame(); 496 RequestKeyFrame();
502 } 497 }
503 } else { 498 } else {
504 video_receiver_.Decode(kMaxDecodeWaitTimeMs); 499 video_receiver_.Decode(kMaxDecodeWaitTimeMs);
505 } 500 }
506 } 501 }
507 } // namespace internal 502 } // namespace internal
508 } // namespace webrtc 503 } // namespace webrtc
OLDNEW
« webrtc/video/rtp_stream_receiver.cc ('K') | « webrtc/video/video_receive_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698