mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-07 16:08:55 +00:00
fmp4mux: Fix draining if there are no GOPs for a stream
This commit is contained in:
parent
a1553a8411
commit
3d7a38f7d4
1 changed files with 7 additions and 0 deletions
|
@ -558,7 +558,14 @@ impl FMP4Mux {
|
||||||
stream.fragment_filled = false;
|
stream.fragment_filled = false;
|
||||||
|
|
||||||
if gops.is_empty() {
|
if gops.is_empty() {
|
||||||
|
gst::info!(
|
||||||
|
CAT,
|
||||||
|
obj: &stream.sinkpad,
|
||||||
|
"Draining no buffers",
|
||||||
|
);
|
||||||
|
|
||||||
streams.push((stream.sinkpad.clone(), stream.caps.clone(), None));
|
streams.push((stream.sinkpad.clone(), stream.caps.clone(), None));
|
||||||
|
drain_buffers.push(VecDeque::new());
|
||||||
} else {
|
} else {
|
||||||
let first_gop = gops.first().unwrap();
|
let first_gop = gops.first().unwrap();
|
||||||
let last_gop = gops.last().unwrap();
|
let last_gop = gops.last().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue