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

Unified Diff: media/cast/receiver/frame_receiver.cc

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comments. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/receiver/frame_receiver.h ('k') | media/cast/receiver/frame_receiver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/frame_receiver.cc
diff --git a/media/cast/receiver/frame_receiver.cc b/media/cast/receiver/frame_receiver.cc
index cf3087c141310793b298c47120054888d9842fda..62aad7ac576a79c0c2ea36b8b7625475d9233641 100644
--- a/media/cast/receiver/frame_receiver.cc
+++ b/media/cast/receiver/frame_receiver.cc
@@ -195,8 +195,8 @@ void FrameReceiver::CastFeedback(const RtcpCastMessage& cast_message) {
ReceiverRtcpEventSubscriber::RtcpEvents rtcp_events;
event_subscriber_.GetRtcpEventsWithRedundancy(&rtcp_events);
SendRtcpReport(rtcp_.local_ssrc(), rtcp_.remote_ssrc(),
- CreateRtcpTimeData(now), &cast_message, target_playout_delay_,
- &rtcp_events, NULL);
+ CreateRtcpTimeData(now), &cast_message, nullptr,
+ target_playout_delay_, &rtcp_events, nullptr);
}
void FrameReceiver::EmitAvailableEncodedFrames() {
@@ -349,8 +349,8 @@ void FrameReceiver::SendNextRtcpReport() {
const base::TimeTicks now = cast_environment_->Clock()->NowTicks();
RtpReceiverStatistics stats = stats_.GetStatistics();
SendRtcpReport(rtcp_.local_ssrc(), rtcp_.remote_ssrc(),
- CreateRtcpTimeData(now), NULL, base::TimeDelta(), NULL,
- &stats);
+ CreateRtcpTimeData(now), nullptr, nullptr, base::TimeDelta(),
+ nullptr, &stats);
ScheduleNextRtcpReport();
}
@@ -359,6 +359,7 @@ void FrameReceiver::SendRtcpReport(
uint32_t rtp_sender_ssrc,
const RtcpTimeData& time_data,
const RtcpCastMessage* cast_message,
+ const RtcpPliMessage* pli_message,
base::TimeDelta target_delay,
const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events,
const RtpReceiverStatistics* rtp_receiver_statistics) {
@@ -391,6 +392,8 @@ void FrameReceiver::SendRtcpReport(
}
if (cast_message)
transport_->AddCastFeedback(*cast_message, target_delay);
+ if (pli_message)
+ transport_->AddPli(*pli_message);
if (rtcp_events)
transport_->AddRtcpEvents(*rtcp_events);
transport_->SendRtcpFromRtpReceiver();
« no previous file with comments | « media/cast/receiver/frame_receiver.h ('k') | media/cast/receiver/frame_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698