mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
af1a58b347
commit
42f52b0b2d
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue