From 08b70416cbcd3d70a2220a68ba6071e669ac5d6c Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 14 Mar 2007 13:40:28 +0000 Subject: [PATCH] gst/gstchildproxy.c: Invert precondition check to be alike the ones in the mimiced gobject api. Original commit message from CVS: * gst/gstchildproxy.c: (gst_child_proxy_get_property), (gst_child_proxy_set_property): Invert precondition check to be alike the ones in the mimiced gobject api. --- ChangeLog | 7 +++++++ gst/gstchildproxy.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 103ea1b..076b8a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-03-14 Stefan Kost + + * gst/gstchildproxy.c: (gst_child_proxy_get_property), + (gst_child_proxy_set_property): + Invert precondition check to be alike the ones in the mimiced gobject + api. + 2007-03-13 Stefan Kost * docs/design/draft-tagreading.txt: diff --git a/gst/gstchildproxy.c b/gst/gstchildproxy.c index c56fb2d..48a25fe 100644 --- a/gst/gstchildproxy.c +++ b/gst/gstchildproxy.c @@ -214,7 +214,7 @@ gst_child_proxy_lookup (GstObject * object, const gchar * name, * gst_child_proxy_get_property: * @object: object to query * @name: name of the property - * @value: an uninitialized #GValue that should take the result. + * @value: a #GValue that should take the result. * * Gets a single property using the GstChildProxy mechanism. * You are responsible for for freeing it by calling g_value_unset() @@ -228,7 +228,7 @@ gst_child_proxy_get_property (GstObject * object, const gchar * name, g_return_if_fail (GST_IS_OBJECT (object)); g_return_if_fail (name != NULL); - g_return_if_fail (!G_IS_VALUE (value)); + g_return_if_fail (G_IS_VALUE (value)); if (!gst_child_proxy_lookup (object, name, &target, &pspec)) goto not_found; @@ -316,7 +316,7 @@ gst_child_proxy_set_property (GstObject * object, const gchar * name, g_return_if_fail (GST_IS_OBJECT (object)); g_return_if_fail (name != NULL); - g_return_if_fail (!G_IS_VALUE (value)); + g_return_if_fail (G_IS_VALUE (value)); if (!gst_child_proxy_lookup (object, name, &target, &pspec)) goto not_found; -- 2.7.4