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