From bc42d382e2ffe39a2596af39e193777c7fa46abe Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 7 Feb 2013 23:45:26 +1100 Subject: [PATCH] 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. --- ext/pango/gstbasetextoverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index 1667de6..c7859a5 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -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); -- 2.7.4