OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/cast/net/cast_transport_sender_impl.h" | 5 #include "media/cast/net/cast_transport_sender_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 } else if (video_sender_ && video_sender_->ssrc() == ssrc) { | 367 } else if (video_sender_ && video_sender_->ssrc() == ssrc) { |
368 dedup_info.resend_interval = video_rtcp_session_->current_round_trip_time(); | 368 dedup_info.resend_interval = video_rtcp_session_->current_round_trip_time(); |
369 | 369 |
370 // Only use audio stream to dedup if there is one. | 370 // Only use audio stream to dedup if there is one. |
371 if (audio_sender_) { | 371 if (audio_sender_) { |
372 dedup_info.last_byte_acked_for_audio = last_byte_acked_for_audio_; | 372 dedup_info.last_byte_acked_for_audio = last_byte_acked_for_audio_; |
373 } | 373 } |
374 } | 374 } |
375 | 375 |
376 if (!cast_message.missing_frames_and_packets.empty()) { | 376 if (!cast_message.missing_frames_and_packets.empty()) { |
| 377 VLOG(2) << "feedback_count: " << cast_message.feedback_count; |
377 // This call does two things. | 378 // This call does two things. |
378 // 1. Specifies that retransmissions for packets not listed in the set are | 379 // 1. Specifies that retransmissions for packets not listed in the set are |
379 // cancelled. | 380 // cancelled. |
380 // 2. Specifies a deduplication window. For video this would be the most | 381 // 2. Specifies a deduplication window. For video this would be the most |
381 // recent RTT. For audio there is no deduplication. | 382 // recent RTT. For audio there is no deduplication. |
382 ResendPackets(ssrc, cast_message.missing_frames_and_packets, true, | 383 ResendPackets(ssrc, cast_message.missing_frames_and_packets, true, |
383 dedup_info); | 384 dedup_info); |
384 } | 385 } |
385 | 386 |
386 if (!cast_message.received_later_frames.empty()) { | 387 if (!cast_message.received_later_frames.empty()) { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 "calling CastTransportSenderImpl::SendRtcpFromRtpReceiver."; | 487 "calling CastTransportSenderImpl::SendRtcpFromRtpReceiver."; |
487 return; | 488 return; |
488 } | 489 } |
489 pacer_.SendRtcpPacket(rtcp_builder_at_rtp_receiver_->local_ssrc(), | 490 pacer_.SendRtcpPacket(rtcp_builder_at_rtp_receiver_->local_ssrc(), |
490 rtcp_builder_at_rtp_receiver_->Finish()); | 491 rtcp_builder_at_rtp_receiver_->Finish()); |
491 rtcp_builder_at_rtp_receiver_.reset(); | 492 rtcp_builder_at_rtp_receiver_.reset(); |
492 } | 493 } |
493 | 494 |
494 } // namespace cast | 495 } // namespace cast |
495 } // namespace media | 496 } // namespace media |
OLD | NEW |