mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-17 23:56:29 +00:00
cea708mux: Always pad cea708
Instead of pushing gaps, we should send out valid (empty) cea708 buffers downstream, like we do in most other caption element Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1946>
This commit is contained in:
parent
80b9d7081a
commit
4d31001c4b
1 changed files with 6 additions and 0 deletions
|
@ -418,6 +418,8 @@ impl AggregatorImpl for Cea708Mux {
|
|||
let format = state.out_format;
|
||||
let fps = state.fps;
|
||||
*state = State::default();
|
||||
state.writer.set_output_padding(true);
|
||||
state.writer.set_output_cea608_padding(true);
|
||||
state.out_format = format;
|
||||
state.fps = fps;
|
||||
state.n_frames = 0;
|
||||
|
@ -578,6 +580,8 @@ impl ElementImpl for Cea708Mux {
|
|||
gst::StateChange::ReadyToPaused => {
|
||||
let mut state = self.state.lock().unwrap();
|
||||
*state = State::default();
|
||||
state.writer.set_output_padding(true);
|
||||
state.writer.set_output_cea608_padding(true);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
@ -588,6 +592,8 @@ impl ElementImpl for Cea708Mux {
|
|||
gst::StateChange::PausedToReady => {
|
||||
let mut state = self.state.lock().unwrap();
|
||||
*state = State::default();
|
||||
state.writer.set_output_padding(true);
|
||||
state.writer.set_output_cea608_padding(true);
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue