From 42f52b0b2d7621ea6b97b6389164c16ab6ce6872 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 30 May 2001 21:14:46 +0000 Subject: [PATCH] Fixed a bug so that gst_props_new (NULL) == NULL Original commit message from CVS: Fixed a bug so that gst_props_new (NULL) == NULL --- gst/gstprops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/gstprops.c b/gst/gstprops.c index 380b531199..1d61041fae 100644 --- a/gst/gstprops.c +++ b/gst/gstprops.c @@ -170,6 +170,9 @@ gst_props_newv (const gchar *firstname, va_list var_args) const gchar *prop_name; GstPropsEntry *list_entry = NULL; + if (firstname == NULL) + return NULL; + g_mutex_lock (_gst_props_chunk_lock); props = g_mem_chunk_alloc (_gst_props_chunk); g_mutex_unlock (_gst_props_chunk_lock);