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

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

Issue 1964473002: Potential fix for rtx/red issue where red is removed only from the remote description. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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) 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 int32_t OnInitializeDecoder(const int8_t payload_type, 96 int32_t OnInitializeDecoder(const int8_t payload_type,
97 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 97 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
98 const int frequency, 98 const int frequency,
99 const size_t channels, 99 const size_t channels,
100 const uint32_t rate) override; 100 const uint32_t rate) override;
101 void OnIncomingSSRCChanged(const uint32_t ssrc) override; 101 void OnIncomingSSRCChanged(const uint32_t ssrc) override;
102 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {} 102 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {}
103 103
104 ReceiveStatistics* GetReceiveStatistics() const; 104 ReceiveStatistics* GetReceiveStatistics() const;
105 105
106 void DisableFec();
107
106 template <class T> 108 template <class T>
107 class RegisterableCallback : public T { 109 class RegisterableCallback : public T {
108 public: 110 public:
109 RegisterableCallback() : callback_(nullptr) {} 111 RegisterableCallback() : callback_(nullptr) {}
110 112
111 void Set(T* callback) { 113 void Set(T* callback) {
112 rtc::CritScope lock(&critsect_); 114 rtc::CritScope lock(&critsect_);
113 callback_ = callback; 115 callback_ = callback;
114 } 116 }
115 117
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 uint8_t restored_packet_[IP_PACKET_SIZE] GUARDED_BY(receive_cs_); 173 uint8_t restored_packet_[IP_PACKET_SIZE] GUARDED_BY(receive_cs_);
172 bool restored_packet_in_use_ GUARDED_BY(receive_cs_); 174 bool restored_packet_in_use_ GUARDED_BY(receive_cs_);
173 int64_t last_packet_log_ms_ GUARDED_BY(receive_cs_); 175 int64_t last_packet_log_ms_ GUARDED_BY(receive_cs_);
174 176
175 const std::unique_ptr<RtpRtcp> rtp_rtcp_; 177 const std::unique_ptr<RtpRtcp> rtp_rtcp_;
176 }; 178 };
177 179
178 } // namespace webrtc 180 } // namespace webrtc
179 181
180 #endif // WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_ 182 #endif // WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698