From 45800d763635b4183b4e1643411ed973103d5cf7 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 29 May 2024 19:55:05 +1000 Subject: [PATCH] tttocea708: ensure periodic sync points in roll up mode Otherwise, without the relevant DefineWindow, then a receiver cannot begin to display the captions from the middle of a stream. Part-of: --- video/closedcaption/src/tttocea708/translate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/closedcaption/src/tttocea708/translate.rs b/video/closedcaption/src/tttocea708/translate.rs index 1a5e4734..60fcfee2 100644 --- a/video/closedcaption/src/tttocea708/translate.rs +++ b/video/closedcaption/src/tttocea708/translate.rs @@ -479,7 +479,8 @@ impl TextToCea708 { || self.pen_location.column > 31 { self.pen_location.column = self.origin_column as u8; - self.service_writer.push_codes(&[Code::CR]); + + self.open_line(chunk, Some(true)); } } else if self.pen_location.column > 31 { if chars.peek().is_some() {