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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1591>
This commit is contained in:
Matthew Waters 2024-05-29 19:55:05 +10:00 committed by GStreamer Marge Bot
parent a7418fb483
commit 45800d7636

View file

@ -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() {