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

Unified Diff: webrtc/video/rtp_stream_receiver.cc

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 side-by-side diff with in-line comments
Download patch
Index: webrtc/video/rtp_stream_receiver.cc
diff --git a/webrtc/video/rtp_stream_receiver.cc b/webrtc/video/rtp_stream_receiver.cc
index 6def90f708feac9a74b151a1e34418777af3a198..996e7a5f7c5a201b4aa63d07edf8ee9ab37e5bb6 100644
--- a/webrtc/video/rtp_stream_receiver.cc
+++ b/webrtc/video/rtp_stream_receiver.cc
@@ -454,4 +454,11 @@ bool RtpStreamReceiver::IsPacketRetransmitted(const RTPHeader& header,
return !in_order &&
statistician->IsRetransmitOfOldPacket(header, min_rtt);
}
+
+void RtpStreamReceiver::DisableFec() {
+ LOG(LS_ERROR) << "Disable red: "
+ << static_cast<int>(rtp_payload_registry_.red_payload_type());
+ rtp_payload_registry_.DeRegisterReceivePayload(
+ rtp_payload_registry_.red_payload_type());
+}
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698