caps: ensure writable caps prior to modification

This commit is contained in:
Mark Nauwelaerts 2012-03-26 18:07:35 +02:00
parent 3776eb9e25
commit 7a7119ec99

View file

@ -1552,6 +1552,8 @@ gst_caps_normalize (GstCaps * caps)
g_return_val_if_fail (GST_IS_CAPS (caps), NULL); g_return_val_if_fail (GST_IS_CAPS (caps), NULL);
caps = gst_caps_make_writable (caps);
nf.caps = caps; nf.caps = caps;
nf.writable = FALSE; nf.writable = FALSE;