diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2021-03-09 01:58:17 +0300 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2021-03-12 13:20:44 +0300 |
commit | 11238579a57927a65a6e10fd965eaeef37d947a2 (patch) | |
tree | 7280ea1a987b289dc1390b13c3529c5d7e6930f7 /video/closedcaption | |
parent | b57c50bdb9fd10a778fcc60bf1cb2935ecd3168f (diff) |
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>
Diffstat (limited to 'video/closedcaption')
-rw-r--r-- | video/closedcaption/src/tttocea608/imp.rs | 2 | ||||
-rw-r--r-- | video/closedcaption/tests/tttocea608.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index 4daf24e8b..3cb383bed 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -778,6 +778,8 @@ impl TtToCea608 { ); } + state.pad(element, mut_list, state.max_frame_no); + self.srcpad.push_list(bufferlist) } diff --git a/video/closedcaption/tests/tttocea608.rs b/video/closedcaption/tests/tttocea608.rs index efcc57b74..658c77cb4 100644 --- a/video/closedcaption/tests/tttocea608.rs +++ b/video/closedcaption/tests/tttocea608.rs @@ -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()); |