diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/fmp4/src/fmp4mux/imp.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/fmp4/src/fmp4mux/imp.rs b/generic/fmp4/src/fmp4mux/imp.rs index aa74ab03a..7d9aa7302 100644 --- a/generic/fmp4/src/fmp4mux/imp.rs +++ b/generic/fmp4/src/fmp4mux/imp.rs @@ -225,7 +225,12 @@ impl FMP4Mux { let running_time = match segment.to_running_time(buffer.dts_or_pts()) { None => { gst::trace!(CAT, obj: &stream.sinkpad, "Stream has no valid running time"); - if earliest_stream.is_none() { + if earliest_stream + .as_ref() + .map_or(true, |(_, _, earliest_running_time)| { + *earliest_running_time > gst::ClockTime::ZERO + }) + { earliest_stream = Some((idx, stream, gst::ClockTime::ZERO)); } continue; |