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

Side by Side Diff: media/cast/rtcp/rtcp_receiver.cc

Issue 164253003: Cast: Split kDuplicatePacketReceived into separate events for audio/video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 unified diff | Download patch
« no previous file with comments | « media/cast/rtcp/rtcp.cc ('k') | media/cast/rtcp/rtcp_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/rtcp/rtcp_receiver.h" 5 #include "media/cast/rtcp/rtcp_receiver.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/cast/rtcp/rtcp_utility.h" 8 #include "media/cast/rtcp/rtcp_utility.h"
9 #include "media/cast/transport/cast_transport_defines.h" 9 #include "media/cast/transport/cast_transport_defines.h"
10 10
(...skipping 11 matching lines...) Expand all
22 return media::cast::kAudioPacketReceived; 22 return media::cast::kAudioPacketReceived;
23 case 5: 23 case 5:
24 return media::cast::kVideoAckSent; 24 return media::cast::kVideoAckSent;
25 case 6: 25 case 6:
26 return media::cast::kVideoFrameDecoded; 26 return media::cast::kVideoFrameDecoded;
27 case 7: 27 case 7:
28 return media::cast::kVideoRenderDelay; 28 return media::cast::kVideoRenderDelay;
29 case 8: 29 case 8:
30 return media::cast::kVideoPacketReceived; 30 return media::cast::kVideoPacketReceived;
31 case 9: 31 case 9:
32 return media::cast::kDuplicatePacketReceived; 32 return media::cast::kDuplicateAudioPacketReceived;
33 case 10:
34 return media::cast::kDuplicateVideoPacketReceived;
33 default: 35 default:
34 // If the sender adds new log messages we will end up here until we add 36 // If the sender adds new log messages we will end up here until we add
35 // the new messages in the receiver. 37 // the new messages in the receiver.
36 VLOG(1) << "Unexpected log message received: " << static_cast<int>(event); 38 VLOG(1) << "Unexpected log message received: " << static_cast<int>(event);
37 NOTREACHED(); 39 NOTREACHED();
38 return media::cast::kUnknown; 40 return media::cast::kUnknown;
39 } 41 }
40 } 42 }
41 43
42 media::cast::transport::RtcpSenderFrameStatus 44 media::cast::transport::RtcpSenderFrameStatus
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 void RtcpReceiver::HandleFIRItem(const RtcpField* rtcp_field) { 582 void RtcpReceiver::HandleFIRItem(const RtcpField* rtcp_field) {
581 // Is it our sender that is requested to generate a new keyframe. 583 // Is it our sender that is requested to generate a new keyframe.
582 if (ssrc_ != rtcp_field->fir_item.ssrc) 584 if (ssrc_ != rtcp_field->fir_item.ssrc)
583 return; 585 return;
584 586
585 VLOG(1) << "Cast RTCP received FIR on our SSRC " << ssrc_; 587 VLOG(1) << "Cast RTCP received FIR on our SSRC " << ssrc_;
586 } 588 }
587 589
588 } // namespace cast 590 } // namespace cast
589 } // namespace media 591 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp.cc ('k') | media/cast/rtcp/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698