diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2019-04-19 02:00:33 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-04-19 02:00:33 +0100 |
commit | 6ad219d5f9571621cf78643c854717170027cbec (patch) | |
tree | d7bd5fd8f8ea78669b6b832681147c071b485fa5 /sources/generated/Gst/Meta.cs | |
parent | cf3b88ae89c996c3b6cf799a31bab7d7eae599c7 (diff) |
Release 1.16.01.16.0
Diffstat (limited to 'sources/generated/Gst/Meta.cs')
-rw-r--r-- | sources/generated/Gst/Meta.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sources/generated/Gst/Meta.cs b/sources/generated/Gst/Meta.cs index b6d205d..a84364e 100644 --- a/sources/generated/Gst/Meta.cs +++ b/sources/generated/Gst/Meta.cs @@ -58,15 +58,6 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_meta_api_type_get_tags(IntPtr api); - - public static string[] ApiTypeGetTags(GLib.GType api) { - IntPtr raw_ret = gst_meta_api_type_get_tags(api.Val); - string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false); - return ret; - } - - [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_meta_api_type_has_tag(IntPtr api, uint tag); public static bool ApiTypeHasTag(GLib.GType api, uint tag) { @@ -83,15 +74,11 @@ namespace Gst { int cnt_tags = tags == null ? 0 : tags.Length; IntPtr[] native_tags = new IntPtr [cnt_tags + 1]; for (int i = 0; i < cnt_tags; i++) - native_tags [i] = GLib.Marshaller.StringToPtrGStrdup (tags[i]); + native_tags [i] = GLib.Marshaller.StringToPtrGStrdup(tags[i]); native_tags [cnt_tags] = IntPtr.Zero; IntPtr raw_ret = gst_meta_api_type_register(native_api, native_tags); GLib.GType ret = new GLib.GType(raw_ret); GLib.Marshaller.Free (native_api); - for (int i = 0; i < native_tags.Length - 1; i++) { - tags [i] = GLib.Marshaller.Utf8PtrToString (native_tags[i]); - GLib.Marshaller.Free (native_tags[i]); - } return ret; } |