Add NetEqInput::PacketData::ToString method
This new method prints information about the packet. BUG=webrtc:7467 Review-Url: https://codereview.webrtc.org/2844283002 Cr-Commit-Position: refs/heads/master@{#17922}
This commit is contained in:
committed by
Commit bot
parent
b637a94b63
commit
7a38fd2628
@ -26,12 +26,8 @@ void DefaultNetEqTestErrorCallback::OnInsertPacketError(
|
||||
<< std::endl;
|
||||
} else {
|
||||
std::cerr << "InsertPacket returned error code " << error_code << std::endl;
|
||||
std::cerr << "Header data:" << std::endl;
|
||||
std::cerr << " PT = " << static_cast<int>(packet.header.payloadType)
|
||||
<< std::endl;
|
||||
std::cerr << " SN = " << packet.header.sequenceNumber << std::endl;
|
||||
std::cerr << " TS = " << packet.header.timestamp << std::endl;
|
||||
}
|
||||
std::cerr << "Packet data: " << packet.ToString() << std::endl;
|
||||
FATAL();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user