mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
More custom code removed by using owned="true"
This commit is contained in:
parent
896ddae3c5
commit
e43e6c9763
3 changed files with 8 additions and 75 deletions
|
@ -71,17 +71,6 @@ public void FoundTagsForPad (Gst.Pad pad, Gst.TagList list) {
|
|||
gst_element_found_tags_for_pad (Handle, pad == null ? IntPtr.Zero : pad.Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle));
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern bool gst_element_post_message (IntPtr raw, IntPtr message);
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern IntPtr gst_mini_object_ref (IntPtr raw);
|
||||
|
||||
public bool PostMessage (Gst.Message message) {
|
||||
bool raw_ret = gst_element_post_message (Handle, message == null ? IntPtr.Zero : gst_mini_object_ref (message.Handle));
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern IntPtr gst_element_get_query_types (IntPtr raw);
|
||||
|
||||
|
@ -106,16 +95,6 @@ public Gst.QueryType[] GetQueryTypes () {
|
|||
return (Gst.QueryType[]) result.ToArray (typeof (Gst.QueryType));
|
||||
}
|
||||
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern bool gst_element_send_event (IntPtr raw, IntPtr evnt);
|
||||
|
||||
public bool SendEvent (Gst.Event evnt) {
|
||||
bool raw_ret = gst_element_send_event (Handle, evnt == null ? IntPtr.Zero : gst_mini_object_ref (evnt.Handle));
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern void gst_element_class_add_pad_template (IntPtr klass, IntPtr templ);
|
||||
|
||||
|
|
|
@ -299,8 +299,8 @@
|
|||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_found_tags']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_found_tags_for_pad']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_message_full']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_post_message']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_send_event']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_post_message']/parameters/parameter[@name='message']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_send_event']/parameters/parameter[@name='event']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_seek_simple']" name="name">Seek</attr>
|
||||
<remove-attr path="/api/namespace/object[@name='Element']/field[@name='CurrentState']" name="hidden"/>
|
||||
<move-node path="/api/namespace/object[@name='Element']/method[@cname='gst_element_make_from_uri']">/api/namespace/object[@name='ElementFactory']</move-node>
|
||||
|
@ -598,11 +598,12 @@
|
|||
</parameters>
|
||||
</callback>
|
||||
</add-node>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_push']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_push_event']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_send_event']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_event_default']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_chain']" name="hidden">1</attr>
|
||||
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_chain']/parameters/parameter[@name='buffer']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_push']/parameters/parameter[@name='buffer']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_push_event']/parameters/parameter[@name='event']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_send_event']/parameters/parameter[@name='event']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/method[@cname='gst_pad_event_default']/parameters/parameter[@name='event']" name="owned">true</attr>
|
||||
<remove-attr path="/api/namespace/object[@name='Pad']/field[@cname='mode']" name="hidden" />
|
||||
<attr path="/api/namespace/object[@name='Pad']/field[@cname='mode']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@name='Pad']/field[@cname='mode']" name="readable">true</attr>
|
||||
|
|
|
@ -228,26 +228,6 @@ public Gst.PadActivateModeFunction ActivatePushFunction {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern int gst_pad_push (IntPtr raw, IntPtr buffer);
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern IntPtr gst_mini_object_ref (IntPtr raw);
|
||||
|
||||
public Gst.FlowReturn Push (Gst.Buffer buffer) {
|
||||
int raw_ret = gst_pad_push (Handle, buffer == null ? IntPtr.Zero : gst_mini_object_ref (buffer.Handle));
|
||||
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern bool gst_pad_push_event (IntPtr raw, IntPtr evnt);
|
||||
|
||||
public bool PushEvent (Gst.Event evnt) {
|
||||
bool raw_ret = gst_pad_push_event (Handle, evnt == null ? IntPtr.Zero : gst_mini_object_ref (evnt.Handle));
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern int gst_pad_pull_range (IntPtr raw, ulong offset, uint size, out IntPtr buffer);
|
||||
|
||||
|
@ -260,24 +240,6 @@ public Gst.FlowReturn PullRange (ulong offset, uint size, out Gst.Buffer buffer)
|
|||
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern bool gst_pad_send_event (IntPtr raw, IntPtr evnt);
|
||||
|
||||
public bool SendEvent (Gst.Event evnt) {
|
||||
bool raw_ret = gst_pad_send_event (Handle, evnt == null ? IntPtr.Zero : gst_mini_object_ref (evnt.Handle));
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern bool gst_pad_event_default (IntPtr raw, IntPtr evnt);
|
||||
|
||||
public bool EventDefault (Gst.Event evnt) {
|
||||
bool raw_ret = gst_pad_event_default (Handle, evnt == null ? IntPtr.Zero : gst_mini_object_ref (evnt.Handle));
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern void gst_pad_set_query_function (IntPtr raw, GstSharp.PadQueryFunctionNative query);
|
||||
|
||||
|
@ -356,15 +318,6 @@ static Gst.QueryType[] GetQueryTypesDefault (Gst.Pad pad) {
|
|||
return (Gst.QueryType[]) result.ToArray (typeof (Gst.QueryType));
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern int gst_pad_chain (IntPtr raw, IntPtr buffer);
|
||||
|
||||
public Gst.FlowReturn Chain (Gst.Buffer buffer) {
|
||||
int raw_ret = gst_pad_chain (Handle, buffer == null ? IntPtr.Zero : gst_mini_object_ref (buffer.Handle));
|
||||
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport ("gstreamersharpglue-0.10.dll") ]
|
||||
extern static uint gstsharp_gst_pad_get_stream_lock_offset ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue