Index: webrtc/modules/audio_coding/neteq/packet_buffer.h |
diff --git a/webrtc/modules/audio_coding/neteq/packet_buffer.h b/webrtc/modules/audio_coding/neteq/packet_buffer.h |
index be2ecebaa379f871bcddd4da97fc3714cbdb43a3..ee8c3789db1e9b04f43dab987071dfd6a4857a0d 100644 |
--- a/webrtc/modules/audio_coding/neteq/packet_buffer.h |
+++ b/webrtc/modules/audio_coding/neteq/packet_buffer.h |
@@ -109,14 +109,16 @@ class PacketBuffer { |
// Discards all packets that are (strictly) older than timestamp_limit. |
virtual int DiscardAllOldPackets(uint32_t timestamp_limit); |
+ // Removes all packets with a specific payload type from the buffer. |
+ virtual void DiscardPacketsWithPayloadType(uint8_t payload_type); |
+ |
// Returns the number of packets in the buffer, including duplicates and |
// redundant packets. |
virtual size_t NumPacketsInBuffer() const; |
// Returns the number of samples in the buffer, including samples carried in |
// duplicate and redundant packets. |
- virtual size_t NumSamplesInBuffer(DecoderDatabase* decoder_database, |
- size_t last_decoded_length) const; |
+ virtual size_t NumSamplesInBuffer(size_t last_decoded_length) const; |
virtual void BufferStat(int* num_packets, int* max_num_packets) const; |