Fix some more structure ownerships

This commit is contained in:
Sebastian Dröge 2009-04-19 18:29:19 +02:00
parent 0c50db66f0
commit 7fb126bfd1
3 changed files with 14 additions and 2 deletions

View file

@ -228,11 +228,11 @@
<attr path="/api/namespace/boxed[@name='Message']/method[@cname='gst_message_get_type']" name="new_flag">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/field[@name='Timestamp']" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/field[@name='Src']" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/field[@name='Structure']" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/method[@cname='gst_message_type_to_quark']" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/method[@cname='gst_message_type_get_name']" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/constructor" name="hidden">1</attr>
<attr path="/api/namespace/boxed[@name='Message']/method" name="hidden">1</attr>
<remove-attr path="/api/namespace/boxed[@name='Message']/method[@cname='gst_message_get_structure']" name="hidden" />
<remove-attr path="/api/namespace/boxed[@name='Message']/method[@cname='gst_message_get_type']" name="hidden" />
<attr path="/api/namespace/enum[@name='MessageType']" name="parent">uint</attr>

View file

@ -66,6 +66,18 @@ public uint Seqnum {
}
}
[DllImport ("gstreamer-0.10.dll") ]
static extern IntPtr gst_message_get_structure (IntPtr raw);
public Gst.Structure Structure {
get {
IntPtr raw_ret = gst_structure_copy (gst_message_get_structure (Handle));
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
return ret;
}
}
[DllImport ("gstreamer-0.10.dll") ]
static extern IntPtr gst_message_new_eos (IntPtr src);

View file

@ -199,7 +199,7 @@ public IEnumerable Fields {
public static Structure NewFromString (string structure) {
IntPtr raw_ret = gst_structure_from_string (structure, IntPtr.Zero);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
return ret;
}