fmp4mux: Fix draining if there are no GOPs for a stream

This commit is contained in:
Sebastian Dröge 2022-05-31 17:25:13 +03:00
parent a1553a8411
commit 3d7a38f7d4

View file

@ -558,7 +558,14 @@ impl FMP4Mux {
stream.fragment_filled = false;
if gops.is_empty() {
gst::info!(
CAT,
obj: &stream.sinkpad,
"Draining no buffers",
);
streams.push((stream.sinkpad.clone(), stream.caps.clone(), None));
drain_buffers.push(VecDeque::new());
} else {
let first_gop = gops.first().unwrap();
let last_gop = gops.last().unwrap();