pango: Don't modify the original attributes list.
authorJan Schmidt <thaytan@noraisin.net>
Thu, 7 Feb 2013 12:45:26 +0000 (23:45 +1100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 7 Feb 2013 12:45:26 +0000 (23:45 +1100)
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

index 1667de6..c7859a5 100644 (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);