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:
Jan Schmidt 2013-02-07 23:45:26 +11:00
parent 2528baf2c2
commit bc42d382e2

View file

@ -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);