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

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

Issue 2740163002: Don't allocate any RTPSender object for a receive only RtpRtcp module (Closed)
Patch Set: Rebased. Created 3 years, 9 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
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 configuration.transport_sequence_number_allocator = 66 configuration.transport_sequence_number_allocator =
67 transport_sequence_number_allocator; 67 transport_sequence_number_allocator;
68 configuration.send_bitrate_observer = nullptr; 68 configuration.send_bitrate_observer = nullptr;
69 configuration.send_frame_count_observer = nullptr; 69 configuration.send_frame_count_observer = nullptr;
70 configuration.send_side_delay_observer = nullptr; 70 configuration.send_side_delay_observer = nullptr;
71 configuration.send_packet_observer = nullptr; 71 configuration.send_packet_observer = nullptr;
72 configuration.bandwidth_callback = nullptr; 72 configuration.bandwidth_callback = nullptr;
73 configuration.transport_feedback_callback = nullptr; 73 configuration.transport_feedback_callback = nullptr;
74 74
75 std::unique_ptr<RtpRtcp> rtp_rtcp(RtpRtcp::CreateRtpRtcp(configuration)); 75 std::unique_ptr<RtpRtcp> rtp_rtcp(RtpRtcp::CreateRtpRtcp(configuration));
76 rtp_rtcp->SetSendingStatus(false);
77 rtp_rtcp->SetSendingMediaStatus(false);
78 rtp_rtcp->SetRTCPStatus(RtcpMode::kCompound); 76 rtp_rtcp->SetRTCPStatus(RtcpMode::kCompound);
79 77
80 return rtp_rtcp; 78 return rtp_rtcp;
81 } 79 }
82 80
83 static const int kPacketLogIntervalMs = 10000; 81 static const int kPacketLogIntervalMs = 10000;
84 82
85 RtpStreamReceiver::RtpStreamReceiver( 83 RtpStreamReceiver::RtpStreamReceiver(
86 Transport* transport, 84 Transport* transport,
87 RtcpRttStats* rtt_stats, 85 RtcpRttStats* rtt_stats,
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 return; 649 return;
652 650
653 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) 651 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str()))
654 return; 652 return;
655 653
656 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), 654 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(),
657 sprop_decoder.pps_nalu()); 655 sprop_decoder.pps_nalu());
658 } 656 }
659 657
660 } // namespace webrtc 658 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698