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
This commit is contained in:
Wim Taymans 2001-05-30 21:14:46 +00:00
parent af1a58b347
commit 42f52b0b2d

View file

@ -170,6 +170,9 @@ gst_props_newv (const gchar *firstname, va_list var_args)
const gchar *prop_name; const gchar *prop_name;
GstPropsEntry *list_entry = NULL; GstPropsEntry *list_entry = NULL;
if (firstname == NULL)
return NULL;
g_mutex_lock (_gst_props_chunk_lock); g_mutex_lock (_gst_props_chunk_lock);
props = g_mem_chunk_alloc (_gst_props_chunk); props = g_mem_chunk_alloc (_gst_props_chunk);
g_mutex_unlock (_gst_props_chunk_lock); g_mutex_unlock (_gst_props_chunk_lock);