From 5eea7288d3998185b6fe1b112a5b69410f30188d Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 3 Jun 2025 10:01:42 +1000 Subject: [PATCH] cea608overlay: also reset the output size on flush stop Otherwise, a flushing seek may cause no captions to be displayed. Part-of: --- video/closedcaption/src/cea608overlay/imp.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index 43b1a7107..3c7b3019c 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -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)