From b48e32ab00acdc2d3d177043012dd18ae8a4285c Mon Sep 17 00:00:00 2001 From: Chris White Date: Fri, 2 Apr 2021 19:48:26 -0400 Subject: [PATCH] gst_child_proxy_get_property: accept G_VALUE_INIT gst_child_proxy_get_property() can now take a value initialized to G_VALUE_INIT. This parallels the corresponding change in g_object_get_property(), GLib 2.60+. https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/724#note_738531 Part-of: --- gst/gstchildproxy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/gstchildproxy.c b/gst/gstchildproxy.c index 5433905..77ef181 100644 --- a/gst/gstchildproxy.c +++ b/gst/gstchildproxy.c @@ -264,11 +264,15 @@ gst_child_proxy_get_property (GstChildProxy * object, const gchar * name, g_return_if_fail (GST_IS_CHILD_PROXY (object)); g_return_if_fail (name != NULL); - g_return_if_fail (G_IS_VALUE (value)); + g_return_if_fail (value != NULL); if (!gst_child_proxy_lookup (object, name, &target, &pspec)) goto not_found; + if (!G_IS_VALUE (value)) { + g_value_init (value, pspec->value_type); + } + g_object_get_property (target, pspec->name, value); gst_object_unref (target); -- 2.7.4