From 0b17c3747ae430c61cd4552891f8bdd572845065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 8 Mar 2012 20:54:49 +0000 Subject: [PATCH] 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. --- ext/pango/gstbasetextoverlay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index 1c19c3b99b..c6e02bbf53 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -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); } }