mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 21:41:03 +00:00
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:
parent
b57c50bdb9
commit
11238579a5
2 changed files with 3 additions and 1 deletions
|
@ -778,6 +778,8 @@ impl TtToCea608 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state.pad(element, mut_list, state.max_frame_no);
|
||||||
|
|
||||||
self.srcpad.push_list(bufferlist)
|
self.srcpad.push_list(bufferlist)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ fn test_one_timed_buffer_and_eos() {
|
||||||
assert_eq!(e.2, &*data);
|
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());
|
h.push_event(gst::event::Eos::new());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue