mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-02 17:53:48 +00:00
cea608overlay: also reset the output size on flush stop
Otherwise, a flushing seek may cause no captions to be displayed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2270>
This commit is contained in:
parent
0c4ea45548
commit
5eea7288d3
1 changed files with 7 additions and 0 deletions
|
@ -337,6 +337,13 @@ impl Cea608Overlay {
|
|||
.renderer
|
||||
.set_black_background(settings.black_background);
|
||||
state.composition = None;
|
||||
if let Some((width, height)) = state
|
||||
.video_info
|
||||
.as_ref()
|
||||
.map(|vinfo| (vinfo.width(), vinfo.height()))
|
||||
{
|
||||
state.renderer.set_video_size(width, height);
|
||||
}
|
||||
drop(state);
|
||||
drop(settings);
|
||||
gst::Pad::event_default(pad, Some(&*self.obj()), event)
|
||||
|
|
Loading…
Reference in a new issue