diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-20 15:46:05 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2022-10-21 10:08:46 +0300 |
commit | 7b5d887c5b00b330c4d31059299717641f31687f (patch) | |
tree | 7258a8351a48baa95eed02c95a9c22055034d90f /net | |
parent | 09ffeaf04e9f4c32f9ea619aa03ea8732114a4da (diff) |
onvifmetadatacombiner: On timeout don't wait for metadata to arrive anymore but output the current video frame
Otherwise it will be too late downstream.
Diffstat (limited to 'net')
-rw-r--r-- | net/onvif/src/onvifmetadatacombiner/imp.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/onvif/src/onvifmetadatacombiner/imp.rs b/net/onvif/src/onvifmetadatacombiner/imp.rs index 0b719576..891f396f 100644 --- a/net/onvif/src/onvifmetadatacombiner/imp.rs +++ b/net/onvif/src/onvifmetadatacombiner/imp.rs @@ -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, |