mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
pango: re-port pangocairo deprecation and compiler warning fixes from 0.10
Wasn't applied because that code is in the new private base class.
This commit is contained in:
parent
c9308a73ca
commit
0b17c3747a
1 changed files with 3 additions and 2 deletions
|
@ -390,7 +390,7 @@ gst_base_text_overlay_base_init (gpointer g_class)
|
|||
g_mutex_lock (klass->pango_lock);
|
||||
fontmap = pango_cairo_font_map_get_default ();
|
||||
klass->pango_context =
|
||||
pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
|
||||
pango_font_map_create_context (PANGO_FONT_MAP (fontmap));
|
||||
if (klass->pango_lock)
|
||||
g_mutex_unlock (klass->pango_lock);
|
||||
}
|
||||
|
@ -734,7 +734,8 @@ gst_base_text_overlay_update_render_mode (GstBaseTextOverlay * overlay)
|
|||
} else {
|
||||
pango_context_set_base_gravity (context, PANGO_GRAVITY_SOUTH);
|
||||
pango_context_set_matrix (context, &matrix);
|
||||
pango_layout_set_alignment (overlay->layout, overlay->line_align);
|
||||
pango_layout_set_alignment (overlay->layout,
|
||||
(PangoAlignment) overlay->line_align);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue