onvifmetadatacombiner: On timeout don't wait for metadata to arrive anymore but output the current video frame

Otherwise it will be too late downstream.
This commit is contained in:
Sebastian Dröge 2022-10-20 15:46:05 +03:00 committed by Sebastian Dröge
parent 09ffeaf04e
commit 7b5d887c5b

View file

@ -300,6 +300,15 @@ impl OnvifMetadataCombiner {
end
);
Ok(Some(current_media_buffer))
} else if timeout {
gst::warning!(
CAT,
imp: self,
"Timed out but did not receive all meta for media buffer from {}-{} yet",
current_media_start,
end
);
Ok(Some(current_media_buffer))
} else {
gst::trace!(
CAT,