mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-28 14:31:06 +00:00
[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:
parent
b3ace3678b
commit
06c8874752
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ impl Cea608Renderer {
|
||||||
self.layout.set_alignment(pango::Alignment::Left);
|
self.layout.set_alignment(pango::Alignment::Left);
|
||||||
let (max_layout_width, _max_layout_height) =
|
let (max_layout_width, _max_layout_height) =
|
||||||
recalculate_pango_layout(&self.layout, width, 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();
|
self.rectangle.take();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue