[Opalvoip-devel] Patch for PlayRTP
Brought to you by:
csoutheren,
rjongbloed
From: <dca...@co...> - 2011-06-10 16:50:29
|
I needed the packet number where payload type was changing, so I made a tiny change to the code. This code will also trigger on CN type packets (payload type=13), but not sure if that is intended. $ svn diff main.cxx Index: main.cxx =================================================================== --- main.cxx (revision 25995) +++ main.cxx (working copy) @@ -415,7 +415,7 @@ if (rtpStreamPayloadType != rtp.GetPayloadType()) { if (rtpStreamPayloadType != RTP_DataFrame::IllegalPayloadType) { - cout << "Payload type changed in mid file \"" << pcap.GetFilePath() << '"' << endl; + cout << "Payload type changed in mid file at sequence number " << rtp.GetSequenceNumber() << " in file\"" << pcap.GetFilePath() << '"' << endl; continue; } rtpStreamPayloadType = rtp.GetPayloadType(); |