Index: webrtc/call/call.cc |
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc |
index ac9866b314714cd8e45167872b8f8f47219fa4f0..d37d08ef8e7ac824669c787f6672ac633d1648d3 100644 |
--- a/webrtc/call/call.cc |
+++ b/webrtc/call/call.cc |
@@ -649,8 +649,11 @@ |
RTC_DCHECK(video_receive_ssrcs_.find(config.rtp.remote_ssrc) == |
video_receive_ssrcs_.end()); |
video_receive_ssrcs_[config.rtp.remote_ssrc] = receive_stream; |
- if (config.rtp.rtx_ssrc) |
- video_receive_ssrcs_[config.rtp.rtx_ssrc] = receive_stream; |
+ // TODO(pbos): Configure different RTX payloads per receive payload. |
+ VideoReceiveStream::Config::Rtp::RtxMap::const_iterator it = |
+ config.rtp.rtx.begin(); |
+ if (it != config.rtp.rtx.end()) |
+ video_receive_ssrcs_[it->second.ssrc] = receive_stream; |
video_receive_streams_.insert(receive_stream); |
ConfigureSync(config.sync_group); |
} |