projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2528baf
)
pango: Don't modify the original attributes list.
author
Jan Schmidt
<thaytan@noraisin.net>
Thu, 7 Feb 2013 12:45:26 +0000
(23:45 +1100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/ext/pango/gstbasetextoverlay.c
b/ext/pango/gstbasetextoverlay.c
index
1667de6
..
c7859a5
100644
(file)
--- 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);