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

Unified Diff: media/cast/receiver/cast_receiver_impl.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 | « media/cast/net/rtp/cast_message_builder_unittest.cc ('k') | media/cast/receiver/frame_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/cast_receiver_impl.cc
diff --git a/media/cast/receiver/cast_receiver_impl.cc b/media/cast/receiver/cast_receiver_impl.cc
index 36669b9e621b24c40a60b0e5c5f0083b94298e97..91821bbb73799d5b159a9ed10ebeb7f7fe37ee76 100644
--- a/media/cast/receiver/cast_receiver_impl.cc
+++ b/media/cast/receiver/cast_receiver_impl.cc
@@ -10,6 +10,7 @@
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
+#include "media/cast/net/rtcp/rtcp_receiver.h"
#include "media/cast/receiver/audio_decoder.h"
#include "media/cast/receiver/video_decoder.h"
@@ -51,8 +52,8 @@ void CastReceiverImpl::DispatchReceivedPacket(scoped_ptr<Packet> packet) {
const size_t length = packet->size();
uint32 ssrc_of_sender;
- if (Rtcp::IsRtcpPacket(data, length)) {
- ssrc_of_sender = Rtcp::GetSsrcOfSender(data, length);
+ if (RtcpReceiver::IsRtcpPacket(data, length)) {
+ ssrc_of_sender = RtcpReceiver::GetSsrcOfSender(data, length);
} else if (!FrameReceiver::ParseSenderSsrc(data, length, &ssrc_of_sender)) {
VLOG(1) << "Invalid RTP packet.";
return;
« no previous file with comments | « media/cast/net/rtp/cast_message_builder_unittest.cc ('k') | media/cast/receiver/frame_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698