Refactor to free up PacketBuffer as soon as possible
The packets belonging to a frame were kept in PacketBuffer until the frame was decoded. This CL clears the dependencies of an existing RtpFrameObject to PacketBuffer so that we can free up PacketBuffer as soon as the RtpFrameObject is created. Bug: none Change-Id: Ic939be91815519ae1d1c67ada82006417b2d26a3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149818 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28977}
This commit is contained in:
committed by
Commit Bot
parent
caef51e25a
commit
a370556270
@ -43,10 +43,6 @@ class FakePacketBuffer : public PacketBuffer {
|
||||
return true;
|
||||
}
|
||||
|
||||
void ReturnFrame(RtpFrameObject* frame) override {
|
||||
packets_.erase(frame->first_seq_num());
|
||||
}
|
||||
|
||||
private:
|
||||
std::map<uint16_t, VCMPacket> packets_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user