[cea608overlay] - don't indent centered text.

Adding the additional 10% padding was causing captions to render to far
to the right.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1845>
This commit is contained in:
Ray Tiley 2024-10-08 16:30:43 -04:00
parent b3ace3678b
commit 06c8874752

View file

@ -550,7 +550,7 @@ impl Cea608Renderer {
self.layout.set_alignment(pango::Alignment::Left);
let (max_layout_width, _max_layout_height) =
recalculate_pango_layout(&self.layout, width, height);
self.left_alignment = (width as i32 - max_layout_width) / 2 + width as i32 / 10;
self.left_alignment = (width as i32 - max_layout_width) / 2;
self.rectangle.take();
}
}