NULL is a valid props
authorDavid Schleef <ds@schleef.org>
Mon, 16 Jun 2003 17:43:42 +0000 (17:43 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 16 Jun 2003 17:43:42 +0000 (17:43 +0000)
Original commit message from CVS:
NULL is a valid props

gst/gstprops.c

index f077016..9f6a56c 100644 (file)
@@ -1703,7 +1703,7 @@ gst_props_entry_get_safe (const GstPropsEntry *entry, ...)
   gboolean result;
   va_list var_args;
 
-  g_return_val_if_fail (entry != NULL, FALSE);
+  if(entry == NULL) return FALSE;
 
   va_start (var_args, entry);
   result = gst_props_entry_getv (entry, TRUE, var_args);