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

Unified Diff: chrome/renderer/media/cast_session_delegate.cc

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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 | « chrome/renderer/media/cast_session_delegate.h ('k') | chrome/renderer/media/cast_transport_sender_ipc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session_delegate.cc
diff --git a/chrome/renderer/media/cast_session_delegate.cc b/chrome/renderer/media/cast_session_delegate.cc
index 8de9341bcd526f632c48493ae7454e882ee5c6da..2e42c7b31be37cf82f3f4eae98f7a6ef3d72a700 100644
--- a/chrome/renderer/media/cast_session_delegate.cc
+++ b/chrome/renderer/media/cast_session_delegate.cc
@@ -105,7 +105,6 @@ void CastSessionDelegate::StartUDP(const net::IPEndPoint& remote_endpoint) {
base::Bind(&CastSessionDelegate::LogRawEvents, base::Unretained(this))));
cast_sender_ = CastSender::Create(cast_environment_, cast_transport_.get());
- cast_transport_->SetPacketReceiver(cast_sender_->packet_receiver());
}
void CastSessionDelegate::ToggleLogging(bool is_audio, bool enable) {
@@ -218,7 +217,8 @@ void CastSessionDelegate::InitializationResultCB(
}
void CastSessionDelegate::LogRawEvents(
- const std::vector<media::cast::PacketEvent>& packet_events) {
+ const std::vector<media::cast::PacketEvent>& packet_events,
+ const std::vector<media::cast::FrameEvent>& frame_events) {
DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
for (std::vector<media::cast::PacketEvent>::const_iterator it =
@@ -234,4 +234,14 @@ void CastSessionDelegate::LogRawEvents(
it->max_packet_id,
it->size);
}
+ for (std::vector<media::cast::FrameEvent>::const_iterator it =
+ frame_events.begin();
+ it != frame_events.end();
+ ++it) {
+ cast_environment_->Logging()->InsertFrameEvent(it->timestamp,
+ it->type,
+ it->media_type,
+ it->rtp_timestamp,
+ it->frame_id);
+ }
}
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.h ('k') | chrome/renderer/media/cast_transport_sender_ipc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698