Skip to content
Snippets Groups Projects
Commit b48e32ab authored by Chris White's avatar Chris White Committed by Sebastian Dröge
Browse files

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+.

!724 (comment 738531)

Part-of: <!809>
parent 1a8dfdfc
No related branches found
No related tags found
No related merge requests found
...@@ -264,11 +264,15 @@ gst_child_proxy_get_property (GstChildProxy * object, const gchar * name, ...@@ -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 (GST_IS_CHILD_PROXY (object));
g_return_if_fail (name != NULL); 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)) if (!gst_child_proxy_lookup (object, name, &target, &pspec))
goto not_found; goto not_found;
if (!G_IS_VALUE (value)) {
g_value_init (value, pspec->value_type);
}
g_object_get_property (target, pspec->name, value); g_object_get_property (target, pspec->name, value);
gst_object_unref (target); gst_object_unref (target);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment