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:
Tim-Philipp Müller 2012-03-08 20:54:49 +00:00
parent c9308a73ca
commit 0b17c3747a

View file

@ -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);
}
}