Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-10-02 12:23:37 +0300
committerSebastian Dröge <slomo@coaxion.net>2022-10-02 12:27:50 +0300
commit9b85dcc03bb421ed0419aa0afb199f3ab580e6c6 (patch)
treef9fefa55f159999292f4675f8722caf60a8d1a9d /generic
parent36ce8bd4f7a29c2a26e3ea845827a4f396609704 (diff)
fmp4mux: Drop GAP buffers before doing ONVIF UTC time re-timestamping
GAP buffers won't have the reference timestamp meta.
Diffstat (limited to 'generic')
-rw-r--r--generic/fmp4/src/fmp4mux/imp.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/fmp4/src/fmp4mux/imp.rs b/generic/fmp4/src/fmp4mux/imp.rs
index ba14f8194..a2d232e19 100644
--- a/generic/fmp4/src/fmp4mux/imp.rs
+++ b/generic/fmp4/src/fmp4mux/imp.rs
@@ -1252,10 +1252,6 @@ impl FMP4Mux {
fragment_end_pts,
) = self.drain_buffers(element, state, settings, timeout, at_eos)?;
- // For ONVIF, replace all timestamps with timestamps based on UTC times.
- let max_end_utc_time =
- self.preprocess_drained_streams_onvif(element, state, &mut drained_streams)?;
-
// Remove all GAP buffers before processing them further
for (_, _, buffers) in &mut drained_streams {
buffers.retain(|buf| {
@@ -1265,6 +1261,10 @@ impl FMP4Mux {
});
}
+ // For ONVIF, replace all timestamps with timestamps based on UTC times.
+ let max_end_utc_time =
+ self.preprocess_drained_streams_onvif(element, state, &mut drained_streams)?;
+
// Create header now if it was not created before and return the caps
let mut caps = None;
if state.stream_header.is_none() {