mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
textoverlay: fix disappearing text with high deltax
When deltax is large enough to cause the text to push past the width of the frame, it would disappear due to a bug in setting the layout width. While there, fix a log printing an incorrect width to set. https://bugzilla.gnome.org/show_bug.cgi?id=739689
This commit is contained in:
parent
b590a843f4
commit
b247001aa9
1 changed files with 3 additions and 3 deletions
|
@ -670,11 +670,11 @@ gst_base_text_overlay_update_wrap_mode (GstBaseTextOverlay * overlay)
|
|||
}
|
||||
} else {
|
||||
width =
|
||||
(overlay->use_vertical_render ? overlay->height : overlay->width) *
|
||||
PANGO_SCALE;
|
||||
((overlay->use_vertical_render ? overlay->height : overlay->width) -
|
||||
overlay->deltax) * PANGO_SCALE;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (overlay, "Set layout width %d", overlay->width);
|
||||
GST_DEBUG_OBJECT (overlay, "Set layout width %d", width);
|
||||
GST_DEBUG_OBJECT (overlay, "Set wrap mode %d", overlay->wrap_mode);
|
||||
pango_layout_set_width (overlay->layout, width);
|
||||
pango_layout_set_wrap (overlay->layout, (PangoWrapMode) overlay->wrap_mode);
|
||||
|
|
Loading…
Reference in a new issue