summaryrefslogtreecommitdiff
path: root/gst/shapewipe
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2013-05-09 22:15:54 -0400
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-10 09:26:07 +0200
commit13a5d0304d04e6a94b4fac21b1e249560ef43910 (patch)
tree25b88e7f205606a07c0c4ea60eced10b6872a6ec /gst/shapewipe
parent59c2f459de57acb99aa4582c11bb28ba3ebe257e (diff)
shapewipe: Ensure caps are writable
The exist one case where that we endup with original caps in ret, in which case we are not guaratied to have writable caps. Simply ensure this is the caps are writable before entering the loop. https://bugzilla.gnome.org/show_bug.cgi?id=700044
Diffstat (limited to 'gst/shapewipe')
-rw-r--r--gst/shapewipe/gstshapewipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c
index 94d91cd28..55e7dd5e6 100644
--- a/gst/shapewipe/gstshapewipe.c
+++ b/gst/shapewipe/gstshapewipe.c
@@ -486,6 +486,7 @@ gst_shape_wipe_mask_sink_getcaps (GstShapeWipe * self, GstPad * pad,
if (gst_caps_is_empty (ret))
goto done;
+ ret = gst_caps_make_writable (ret);
n = gst_caps_get_size (ret);
tmp = gst_caps_new_empty ();
for (i = 0; i < n; i++) {