onvifmetadatacombiner: Metadata should not have a pts/dts

Incoming onvif-data should be stripped of pts/dts, as they are not updated when attached to a frame. Pts/Dta are readded by the associated extractor element

Linked to https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/655

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2099>
This commit is contained in:
Mark-André Schadow 2025-02-18 14:46:52 +01:00 committed by GStreamer Marge Bot
parent 40d33805d8
commit 7b780e2aaf

View file

@ -359,7 +359,12 @@ impl AggregatorImpl for OnvifMetadataCombiner {
{
let buflist_mut = buflist.get_mut().unwrap();
for frame in state.meta_frames.drain(..) {
for mut frame in state.meta_frames.drain(..) {
{
let frame = frame.make_mut();
frame.set_dts(None);
frame.set_pts(None);
}
buflist_mut.add(frame);
}
}