From be6d49095fe6d1cb9ff3fb4169f12ccf381f2a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 21 Apr 2009 14:24:14 +0200 Subject: [PATCH] Copy all still existing structure references before calling gst_caps_do_simplify --- gstreamer-sharp/Caps.custom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gstreamer-sharp/Caps.custom b/gstreamer-sharp/Caps.custom index b516a2bab0..a96ea2810c 100644 --- a/gstreamer-sharp/Caps.custom +++ b/gstreamer-sharp/Caps.custom @@ -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); }