[gst-cvs] gstreamer-sharp: Copy all still existing structure references before calling gst_caps_do_simplify
Sebastian Dröge
slomo at kemper.freedesktop.org
Tue Apr 21 05:32:06 PDT 2009
Module: gstreamer-sharp
Branch: master
Commit: be6d49095fe6d1cb9ff3fb4169f12ccf381f2a7c
URL: http://cgit.freedesktop.org/gstreamer/gstreamer-sharp/commit/?id=be6d49095fe6d1cb9ff3fb4169f12ccf381f2a7c
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Tue Apr 21 14:24:14 2009 +0200
Copy all still existing structure references before calling gst_caps_do_simplify
---
gstreamer-sharp/Caps.custom | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gstreamer-sharp/Caps.custom b/gstreamer-sharp/Caps.custom
index b516a2b..a96ea28 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);
}
More information about the Gstreamer-commits
mailing list