summaryrefslogtreecommitdiff
path: root/gstreamer-sharp/Caps.custom
diff options
context:
space:
mode:
Diffstat (limited to 'gstreamer-sharp/Caps.custom')
-rw-r--r--gstreamer-sharp/Caps.custom3
1 files changed, 2 insertions, 1 deletions
diff --git a/gstreamer-sharp/Caps.custom b/gstreamer-sharp/Caps.custom
index de2e255..4ff992d 100644
--- a/gstreamer-sharp/Caps.custom
+++ b/gstreamer-sharp/Caps.custom
@@ -57,8 +57,9 @@ private void RemoveStructureReference (Structure s) {
private void RemoveStructureReferences () {
foreach (Structure s in structures.Values) {
- RemoveStructureReference (s);
+ s.CreateNativeCopy ();
}
+ structures.Clear ();
}
[DllImport ("libgstreamer-0.10.dll") ]