From: Rico Tzschichholz Date: Fri, 5 Feb 2021 06:51:34 +0000 (+0100) Subject: gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED X-Git-Tag: 0.51.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd58cadec2ea3d8334170fb346a525c27c310e6a;p=thirdparty%2Fvala.git gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED Fixed https://gitlab.gnome.org/GNOME/vala/issues/1133 --- diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index cd82ec318..f81e420e8 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -1790,7 +1790,7 @@ namespace Gst { [Version (since = "1.14")] public unowned Gst.Structure writable_structure (); } - [CCode (cheader_filename = "gst/gst.h", get_value_function = "g_value_get_boxed", has_type_id = false, ref_function = "gst_mini_object_ref", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed", unref_function = "gst_mini_object_unref")] + [CCode (cheader_filename = "gst/gst.h", get_value_function = "g_value_get_boxed", ref_function = "gst_mini_object_ref", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed", type_id = "G_TYPE_BOXED", unref_function = "gst_mini_object_unref")] [Compact] public abstract class MiniObject { public weak Gst.MiniObjectDisposeFunction dispose; diff --git a/vapi/metadata/Gst-1.0-custom.vala b/vapi/metadata/Gst-1.0-custom.vala index 07bf44592..1471ed8c9 100644 --- a/vapi/metadata/Gst-1.0-custom.vala +++ b/vapi/metadata/Gst-1.0-custom.vala @@ -67,7 +67,7 @@ namespace Gst { public bool find_custom ([CCode (type = "GCompareFunc")] GLib.SearchFunc func, out GLib.Value elem, T user_data); } - [Compact, CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed")] + [Compact, CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed", type_id = "G_TYPE_BOXED")] public abstract class MiniObject { [CCode (simple_generics = true)] public T get_qdata (GLib.Quark quark);