From de989e180017f09b21fafb4de8dd60c72d25bc87 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 13 Mar 2018 09:27:01 -0300 Subject: [PATCH] caps: Make sure that the empty constructor build an Empty caps Moving the NewAny variant at the end of the nodes in the API definition file. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=793054 --- sources/generated/Gst/Caps.cs | 22 +++++++++++----------- sources/generated/gstreamer-sharp-api.xml | 2 +- sources/gstreamer-sharp.metadata | 6 ++++++ 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/sources/generated/Gst/Caps.cs b/sources/generated/Gst/Caps.cs index 53bd72b..1a7d97a 100644 --- a/sources/generated/Gst/Caps.cs +++ b/sources/generated/Gst/Caps.cs @@ -391,20 +391,11 @@ namespace Gst { public Caps(IntPtr raw) : base(raw) {} [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_caps_new_any(); - - public Caps () - { - Raw = gst_caps_new_any(); - } - - [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_caps_new_empty(); - public static Caps NewEmpty() + public Caps () { - Caps result = new Caps (gst_caps_new_empty()); - return result; + Raw = gst_caps_new_empty(); } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] @@ -417,6 +408,15 @@ namespace Gst { GLib.Marshaller.Free (native_media_type); } + [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr gst_caps_new_any(); + + public static Caps NewAny() + { + Caps result = new Caps (gst_caps_new_any()); + return result; + } + // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _abi_info = null; diff --git a/sources/generated/gstreamer-sharp-api.xml b/sources/generated/gstreamer-sharp-api.xml index 4516332..03d4716 100644 --- a/sources/generated/gstreamer-sharp-api.xml +++ b/sources/generated/gstreamer-sharp-api.xml @@ -6618,7 +6618,6 @@ - @@ -6912,6 +6911,7 @@ +