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:
henrik.lundin@webrtc.org
2014-06-18 12:20:31 +00:00
parent d8de0669c9
commit 12396aba42
3 changed files with 48 additions and 39 deletions

View File

@ -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: