mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-12 19:14:16 +00:00
pango: avoid unnecessary pango attribute list copy
We just want to keep it alive, not modify it, so a simple ref should be enough. https://bugzilla.gnome.org/show_bug.cgi?id=686841
This commit is contained in:
parent
2e0174e13c
commit
3138c4e696
1 changed files with 1 additions and 1 deletions
|
@ -1380,7 +1380,7 @@ gst_base_text_overlay_render_pangocairo (GstBaseTextOverlay * overlay,
|
|||
PangoAttrList *origin_attr, *filtered_attr;
|
||||
|
||||
origin_attr =
|
||||
pango_attr_list_copy (pango_layout_get_attributes (overlay->layout));
|
||||
pango_attr_list_ref (pango_layout_get_attributes (overlay->layout));
|
||||
filtered_attr =
|
||||
pango_attr_list_filter (pango_attr_list_copy (origin_attr),
|
||||
gst_text_overlay_filter_foreground_attr, NULL);
|
||||
|
|
Loading…
Reference in a new issue