mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
Make some element methods protected as they should be
This commit is contained in:
parent
55c47c29ec
commit
58c9aeb8a6
2 changed files with 7 additions and 3 deletions
|
@ -3,7 +3,7 @@ static extern IntPtr g_object_ref (IntPtr raw);
|
|||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern bool gst_element_add_pad (IntPtr raw, IntPtr pad);
|
||||
|
||||
public bool AddPad (Pad p) {
|
||||
protected bool AddPad (Pad p) {
|
||||
bool ret = gst_element_add_pad (this.Handle, p == null ? IntPtr.Zero : p.Handle);
|
||||
if (ret)
|
||||
g_object_ref (p.Handle);
|
||||
|
@ -35,14 +35,14 @@ static extern void gst_element_found_tags (IntPtr raw, IntPtr list);
|
|||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern IntPtr gst_tag_list_copy (IntPtr raw);
|
||||
|
||||
public void FoundTags (Gst.TagList list) {
|
||||
protected void FoundTags (Gst.TagList list) {
|
||||
gst_element_found_tags (Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle));
|
||||
}
|
||||
|
||||
[DllImport("libgstreamer-0.10.dll") ]
|
||||
static extern void gst_element_found_tags_for_pad (IntPtr raw, IntPtr pad, IntPtr list);
|
||||
|
||||
public void FoundTagsForPad (Gst.Pad pad, Gst.TagList list) {
|
||||
protected 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));
|
||||
}
|
||||
|
||||
|
|
|
@ -291,6 +291,7 @@
|
|||
<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']/parameters/parameter[@name='message']" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_post_message']" name="accessibility">protected</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"/>
|
||||
|
@ -299,6 +300,9 @@
|
|||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_pads']" name="name">GetPads</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_src_pads']" name="name">GetSrcPads</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_iterate_sink_pads']" name="name">GetSinkPads</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_create_all_pads']" name="accessibility">protected</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_no_more_pads']" name="accessibility">protected</attr>
|
||||
<attr path="/api/namespace/object[@name='Element']/method[@cname='gst_element_remove_pad']" name="accessibility">protected</attr>
|
||||
|
||||
<attr path="/api/namespace/struct[@name='ElementDetails']" name="internal">1</attr>
|
||||
|
||||
|
|
Loading…
Reference in a new issue