[vala/0.48] gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED
- Date: Sun, 28 Feb 2021 17:26:27 +0000 (UTC)
commit f569ea4d71dc5680a73d178f7764e2b565c08bf3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Feb 5 07:51:34 2021 +0100
gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED
Fixed https://gitlab.gnome.org/GNOME/vala/issues/1133
vapi/gstreamer-1.0.vapi | 2 +-
vapi/metadata/Gst-1.0-custom.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 3b21b27c8..40afa0f07 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1774,7 +1774,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<T> ([CCode (type = "GCompareFunc")] GLib.SearchFunc<GLib.Value?,T>
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<T> (GLib.Quark quark);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]