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

Unified Diff: webrtc/video/replay.cc

Issue 2621163006: replay: output rtp header elements for errors (Closed)
Patch Set: output more header elements Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/replay.cc
diff --git a/webrtc/video/replay.cc b/webrtc/video/replay.cc
index aa844605ddf4e3d6a30a53466fac399615af29db..2188d3e81d3a2bddbaec60fd722c328ba184ca5d 100644
--- a/webrtc/video/replay.cc
+++ b/webrtc/video/replay.cc
@@ -296,9 +296,16 @@ void RtpReplay() {
++unknown_packets[header.ssrc];
break;
}
- case PacketReceiver::DELIVERY_PACKET_ERROR:
+ case PacketReceiver::DELIVERY_PACKET_ERROR: {
fprintf(stderr, "Packet error, corrupt packets or incorrect setup?\n");
+ RTPHeader header;
+ std::unique_ptr<RtpHeaderParser> parser(RtpHeaderParser::Create());
+ parser->Parse(packet.data, packet.length, &header);
+ fprintf(stderr, "Packet len=%ld pt=%u seq=%u ts=%u ssrc=0x%8x\n",
+ packet.length, header.payloadType, header.sequenceNumber,
+ header.timestamp, header.ssrc);
break;
+ }
}
if (last_time_ms != 0 && last_time_ms != packet.time_ms) {
SleepMs(packet.time_ms - last_time_ms);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698