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
@ -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…
x
Reference in New Issue
Block a user