gst/gstchildproxy.c: Invert precondition check to be alike the ones in the mimiced...
authorStefan Kost <ensonic@users.sourceforge.net>
Wed, 14 Mar 2007 13:40:28 +0000 (13:40 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Wed, 14 Mar 2007 13:40:28 +0000 (13:40 +0000)
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
gst/gstchildproxy.c

index 103ea1b..076b8a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-03-14  Stefan Kost  <ensonic@users.sf.net>
+
+       * 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  <ensonic@users.sf.net>
 
        * docs/design/draft-tagreading.txt:
index c56fb2d..48a25fe 100644 (file)
@@ -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;