Copy all still existing structure references before calling gst_caps_do_simplify

This commit is contained in:
Sebastian Dröge 2009-04-21 14:24:14 +02:00
parent 55df427fab
commit be6d49095f

View file

@ -186,9 +186,9 @@ public bool DoSimplify () {
if (!IsWritable)
throw new ApplicationException ();
/* FIXME: This might remove/free structures, we have to copy
* them before with RemoveStructureReference() somehow
*/
/* FIXME: This is not optimal but we don't know before
* which structures will be removed */
RemoveStructureReferences ();
return gst_caps_do_simplify (Handle);
}