mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
fmp4mux: Add debug output for each fragment's start PTS
This commit is contained in:
parent
3d7a38f7d4
commit
7e2cf613b4
1 changed files with 12 additions and 3 deletions
|
@ -883,9 +883,18 @@ impl FMP4Mux {
|
||||||
state.end_pts = Some(max_end_pts);
|
state.end_pts = Some(max_end_pts);
|
||||||
|
|
||||||
// Update for the start PTS of the next fragment
|
// Update for the start PTS of the next fragment
|
||||||
state.fragment_start_pts = state
|
state.fragment_start_pts = state.fragment_start_pts.map(|start| {
|
||||||
.fragment_start_pts
|
let new_fragment_start = start + settings.fragment_duration;
|
||||||
.map(|start| start + settings.fragment_duration);
|
|
||||||
|
gst::info!(
|
||||||
|
CAT,
|
||||||
|
obj: element,
|
||||||
|
"Starting new fragment at {}",
|
||||||
|
new_fragment_start
|
||||||
|
);
|
||||||
|
|
||||||
|
new_fragment_start
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if settings.write_mfra && at_eos {
|
if settings.write_mfra && at_eos {
|
||||||
|
|
Loading…
Reference in a new issue