Remove some custom code now that the code generator correctly handles ownership of out parameters

This commit is contained in:
Sebastian Dröge 2009-06-03 20:56:22 +02:00
parent 7a57660044
commit aba607129c
2 changed files with 0 additions and 25 deletions

View file

@ -550,9 +550,6 @@
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_remove_data_probe']" name="hidden">1</attr> <attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_remove_data_probe']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_remove_event_probe']" name="hidden">1</attr> <attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_remove_event_probe']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Pad']/constructor[@cname='gst_pad_new_from_static_template']" name="hidden">1</attr> <attr path="/api/namespace/object[@name='Pad']/constructor[@cname='gst_pad_new_from_static_template']" name="hidden">1</attr>
<!-- FIXME: https://bugzilla.novell.com/show_bug.cgi?id=498498 -->
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_alloc_buffer']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_alloc_buffer_and_set_caps']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_pull_range']" name="hidden">1</attr> <attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_pull_range']" name="hidden">1</attr>
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_alloc_buffer']/parameters/parameter[@name='buf']" name="pass_as">out</attr> <attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_alloc_buffer']/parameters/parameter[@name='buf']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_alloc_buffer']/parameters/parameter[@name='buf']" name="owned">true</attr> <attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_alloc_buffer']/parameters/parameter[@name='buf']" name="owned">true</attr>

View file

@ -32,28 +32,6 @@ public void RemoveBufferProbe (ulong handler_id) {
gst_pad_remove_buffer_probe (Handle, (uint) handler_id); gst_pad_remove_buffer_probe (Handle, (uint) handler_id);
} }
[DllImport("libgstreamer-0.10.dll") ]
static extern int gst_pad_alloc_buffer (IntPtr raw, ulong offset, int size, IntPtr caps, out IntPtr buf);
public Gst.FlowReturn AllocBuffer (ulong offset, int size, Gst.Caps caps, out Gst.Buffer buf) {
IntPtr native_buf;
int raw_ret = gst_pad_alloc_buffer (Handle, offset, size, caps == null ? IntPtr.Zero : caps.Handle, out native_buf);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
buf = native_buf == IntPtr.Zero ? null : (Gst.Buffer) Gst.MiniObject.GetObject (native_buf, true);
return ret;
}
[DllImport("libgstreamer-0.10.dll") ]
static extern int gst_pad_alloc_buffer_and_set_caps (IntPtr raw, ulong offset, int size, IntPtr caps, out IntPtr buf);
public Gst.FlowReturn AllocBufferAndSetCaps (ulong offset, int size, Gst.Caps caps, out Gst.Buffer buf) {
IntPtr native_buf;
int raw_ret = gst_pad_alloc_buffer_and_set_caps (Handle, offset, size, caps == null ? IntPtr.Zero : caps.Handle, out native_buf);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
buf = native_buf == IntPtr.Zero ? null : (Gst.Buffer) Gst.MiniObject.GetObject (native_buf, true);
return ret;
}
[DllImport("libgstreamer-0.10.dll") ] [DllImport("libgstreamer-0.10.dll") ]
static extern void gst_pad_set_bufferalloc_function (IntPtr raw, GstSharp.PadBufferAllocFunctionNative bufalloc); static extern void gst_pad_set_bufferalloc_function (IntPtr raw, GstSharp.PadBufferAllocFunctionNative bufalloc);