tttocea608: pad immediately for the duration of the input buffer

Pushing the pending padding once we receive the following gap
or buffer means we will push it too late otherwise.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/480>
This commit is contained in:
Mathieu Duponchelle 2021-03-08 23:58:17 +01:00
parent b57c50bdb9
commit 11238579a5
2 changed files with 3 additions and 1 deletions

View file

@ -778,6 +778,8 @@ impl TtToCea608 {
);
}
state.pad(element, mut_list, state.max_frame_no);
self.srcpad.push_list(bufferlist)
}

View file

@ -107,7 +107,7 @@ fn test_one_timed_buffer_and_eos() {
assert_eq!(e.2, &*data);
}
assert_eq!(h.buffers_in_queue(), 0);
assert_eq!(h.buffers_in_queue(), 23);
h.push_event(gst::event::Eos::new());