Gst.Pipeline: Hide GetBus

Gst.Element has same method to return Gst.Bus
so Gst.Pipeline doesn't need to define again.

https://bugzilla.gnome.org/show_bug.cgi?id=793870
This commit is contained in:
Justin Kim 2018-02-28 22:01:24 +09:00 committed by Thibault Saunier
parent bbe45ebd91
commit 1bcec1ec3b
3 changed files with 4 additions and 12 deletions

View file

@ -154,17 +154,6 @@ namespace Gst {
gst_pipeline_auto_clock(Handle);
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_pipeline_get_bus(IntPtr raw);
public new Gst.Bus Bus {
get {
IntPtr raw_ret = gst_pipeline_get_bus(Handle);
Gst.Bus ret = GLib.Object.GetObject(raw_ret, true) as Gst.Bus;
return ret;
}
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_pipeline_get_pipeline_clock(IntPtr raw);

View file

@ -5057,7 +5057,7 @@
<return-type type="gboolean" />
<parameters />
</method>
<method name="GetBus" cname="gst_pipeline_get_bus">
<method name="GetBus" cname="gst_pipeline_get_bus" hidden="true">
<return-type type="GstBus*" owned="true" />
<parameters />
</method>

View file

@ -79,6 +79,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
<attr path="/api/namespace/object[@cname='GstBin']/field[@cname='element']" name="hidden">true</attr>
<attr path="/api/namespace/object[@cname='GstPipeline']/field[@cname='bin']" name="hidden">true</attr>
<!-- hide some methods if the same name exisits in a parent class -->
<attr path="/api/namespace/object[@cname='GstPipeline']/method[@name='GetBus']" name="hidden">true</attr>
<!-- add opaque attribute to all structs which need special handling -->
<attr path="/api/namespace//boxed[field[@type='GstMiniObject']]" name="opaque">true</attr>
<attr path="/api/namespace//boxed[field[@type='GstMiniObject']]" name="parent">GstMiniObject</attr>