mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
fmp4mux: Only push fragment_offset if write_mfra is true
This is done so that the fragment_offset vector does not infinitely build up when write_mfra is disabled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1023>
This commit is contained in:
parent
6607a63159
commit
71c268da14
1 changed files with 13 additions and 11 deletions
|
@ -1505,6 +1505,7 @@ impl FMP4Mux {
|
||||||
.collect::<gst::BufferList>(),
|
.collect::<gst::BufferList>(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if settings.write_mfra {
|
||||||
// Write mfra only for the main stream, and if there are no buffers for the main stream
|
// Write mfra only for the main stream, and if there are no buffers for the main stream
|
||||||
// in this segment then don't write anything.
|
// in this segment then don't write anything.
|
||||||
if let Some(super::FragmentHeaderStream {
|
if let Some(super::FragmentHeaderStream {
|
||||||
|
@ -1517,6 +1518,7 @@ impl FMP4Mux {
|
||||||
offset: moof_offset,
|
offset: moof_offset,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
state.end_pts = Some(fragment_end_pts);
|
state.end_pts = Some(fragment_end_pts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue