mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: set serial to invalid on parse error
This commit is contained in:
parent
b3e7d2b72a
commit
dec2b1b9a2
1 changed files with 3 additions and 1 deletions
|
|
@ -605,7 +605,9 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
return;
|
||||
}
|
||||
str = props ? spa_dict_lookup(props, PW_KEY_OBJECT_SERIAL) : NULL;
|
||||
spa_atou64(str, &o->this.serial, 0);
|
||||
if (!spa_atou64(str, &o->this.serial, 0))
|
||||
o->this.serial = SPA_ID_INVALID;
|
||||
|
||||
o->this.id = id;
|
||||
o->this.permissions = permissions;
|
||||
o->this.type = info->type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue