[DllImport ("gstreamer-0.10.dll") ]
static extern void gst_caps_append_structure (IntPtr caps, IntPtr structure);
+[DllImport ("gstreamer-0.10.dll") ]
+static extern IntPtr gst_structure_copy (IntPtr raw);
+
public void Append (Structure s) {
if (!IsWritable)
throw new ApplicationException ();
- gst_caps_append_structure (Handle, s.Copy().Handle);
+ gst_caps_append_structure (Handle, gst_structure_copy (s.Handle));
}
[DllImport ("gstreamer-0.10.dll") ]
if (!IsWritable)
throw new ApplicationException ();
- gst_caps_append (Handle, caps.Copy().Handle);
+ gst_caps_append (Handle, gst_caps_copy (caps.Handle));
}
[DllImport ("gstreamer-0.10.dll") ]
if (!IsWritable)
throw new ApplicationException ();
- gst_caps_merge_structure (Handle, s.Copy().Handle);
+ gst_caps_merge_structure (Handle, gst_structure_copy (s.Handle));
}
[DllImport ("gstreamer-0.10.dll") ]
if (!IsWritable)
throw new ApplicationException ();
- gst_caps_merge (Handle, caps.Copy().Handle);
+ gst_caps_merge (Handle, gst_caps_copy (caps.Handle));
}
[DllImport ("gstreamer-0.10.dll") ]