rtpbasedepay2: fix reference timestamp meta duplicates

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1890>
This commit is contained in:
Jerome Colle 2024-10-25 18:23:07 +02:00
parent cdaee85a19
commit 0df2b72ff2

View file

@ -335,13 +335,13 @@ impl RtpBaseDepay2 {
// Copy over metas and other metadata from the packets that made up this buffer // Copy over metas and other metadata from the packets that made up this buffer
let obj = self.obj(); let obj = self.obj();
let mut reference_timestamp_metas = BTreeMap::new();
for front in state for front in state
.pending_packets .pending_packets
.iter() .iter()
.take_while(|p| p.ext_seqnum <= ext_seqnum) .take_while(|p| p.ext_seqnum <= ext_seqnum)
{ {
// Filter out reference timestamp metas that have the same timestamps // Filter out reference timestamp metas that have the same timestamps
let mut reference_timestamp_metas = BTreeMap::new();
front.buffer.foreach_meta(|meta| { front.buffer.foreach_meta(|meta| {
use std::ops::ControlFlow::*; use std::ops::ControlFlow::*;