summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorJustin Kim <justin.kim@collabora.com>2018-02-28 22:01:24 +0900
committerThibault Saunier <tsaunier@igalia.com>2018-03-13 10:18:33 -0300
commit1bcec1ec3b5dfab10610b21d24ca30ec946f1011 (patch)
treedce95a7116eff992f7ad17fe2da6e415607d9651 /sources
parentbbe45ebd918d479d634699a07cf98c9e721bb721 (diff)
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
Diffstat (limited to 'sources')
-rw-r--r--sources/generated/Gst/Pipeline.cs11
-rw-r--r--sources/generated/gstreamer-sharp-api.xml2
-rw-r--r--sources/gstreamer-sharp.metadata3
3 files changed, 4 insertions, 12 deletions
diff --git a/sources/generated/Gst/Pipeline.cs b/sources/generated/Gst/Pipeline.cs
index 064e0e6..b8210ca 100644
--- a/sources/generated/Gst/Pipeline.cs
+++ b/sources/generated/Gst/Pipeline.cs
@@ -155,17 +155,6 @@ namespace Gst {
}
[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);
public Gst.Clock PipelineClock {
diff --git a/sources/generated/gstreamer-sharp-api.xml b/sources/generated/gstreamer-sharp-api.xml
index dca065d..c08348a 100644
--- a/sources/generated/gstreamer-sharp-api.xml
+++ b/sources/generated/gstreamer-sharp-api.xml
@@ -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>
diff --git a/sources/gstreamer-sharp.metadata b/sources/gstreamer-sharp.metadata
index 0dbe7ad..232115d 100644
--- a/sources/gstreamer-sharp.metadata
+++ b/sources/gstreamer-sharp.metadata
@@ -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>