mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
Conflicts: src/modules/module-stream-restore.c
This commit is contained in:
commit
0ad2d55cbe
46 changed files with 720 additions and 173 deletions
|
|
@ -251,7 +251,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
|
|||
|
||||
pa_assert(p);
|
||||
pa_assert(key);
|
||||
pa_assert(data);
|
||||
pa_assert(data || nbytes == 0);
|
||||
|
||||
if (!property_name_valid(key))
|
||||
return -1;
|
||||
|
|
@ -264,7 +264,8 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
|
|||
pa_xfree(prop->value);
|
||||
|
||||
prop->value = pa_xmalloc(nbytes+1);
|
||||
memcpy(prop->value, data, nbytes);
|
||||
if (nbytes > 0)
|
||||
memcpy(prop->value, data, nbytes);
|
||||
((char*) prop->value)[nbytes] = 0;
|
||||
prop->nbytes = nbytes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue