mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-24 08:36:19 +00:00
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:
parent
40d33805d8
commit
7b780e2aaf
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue