mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
pango: don't use deprecated pango_cairo_font_map_create_context()
https://bugzilla.gnome.org/show_bug.cgi?id=671300
This commit is contained in:
parent
85a7b8f562
commit
0c2f2a64c5
3 changed files with 3 additions and 3 deletions
|
@ -789,7 +789,7 @@ AG_GST_CHECK_FEATURE(OGG, [Xiph Ogg library], ogg, [
|
|||
dnl *** pango ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_PANGO, true)
|
||||
AG_GST_CHECK_FEATURE(PANGO, [Pango font rendering], pango, [
|
||||
AG_GST_PKG_CHECK_MODULES(PANGO, pango >= 1.16.0 pangocairo >= 1.16.0)
|
||||
AG_GST_PKG_CHECK_MODULES(PANGO, pango >= 1.22.0 pangocairo >= 1.22.0)
|
||||
])
|
||||
|
||||
dnl *** theora ***
|
||||
|
|
|
@ -375,7 +375,7 @@ gst_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);
|
||||
}
|
||||
|
|
|
@ -203,7 +203,7 @@ gst_text_render_class_init (GstTextRenderClass * klass)
|
|||
|
||||
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));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FONT_DESC,
|
||||
g_param_spec_string ("font-desc", "font description",
|
||||
"Pango font description of font "
|
||||
|
|
Loading…
Reference in a new issue