mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
pango: Don't modify the original attributes list.
Take a copy of the original attributes list instead of just a ref, since pango_attr_list_filter can remove elements from it.
This commit is contained in:
parent
2528baf2c2
commit
bc42d382e2
1 changed files with 1 additions and 1 deletions
|
@ -1342,7 +1342,7 @@ gst_base_text_overlay_render_pangocairo (GstBaseTextOverlay * overlay,
|
|||
PangoAttrList *origin_attr, *filtered_attr;
|
||||
|
||||
origin_attr =
|
||||
pango_attr_list_ref (pango_layout_get_attributes (overlay->layout));
|
||||
pango_attr_list_copy (pango_layout_get_attributes (overlay->layout));
|
||||
filtered_attr =
|
||||
pango_attr_list_filter (origin_attr,
|
||||
gst_text_overlay_filter_foreground_attr, NULL);
|
||||
|
|
Loading…
Reference in a new issue