Update PacketSource and RtpFileSource
The NextPacket method should now return NULL when the end of the source was reached. In the RtpFileSource, this means that when the end of file is reached, NULL is returned. Also, when an RTCP packet is encountered, the next packet will be read from file immediately. R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/20699004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6479 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -24,7 +24,8 @@ class PacketSource {
|
||||
PacketSource() {}
|
||||
virtual ~PacketSource() {}
|
||||
|
||||
// Returns a pointer to the next packet.
|
||||
// Returns a pointer to the next packet. Returns NULL if the source is
|
||||
// depleted, or if an error occurred.
|
||||
virtual Packet* NextPacket() = 0;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user