mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pw-metadata: handle NULL props from metadata object
This commit is contained in:
parent
72e748a197
commit
a8bafa0631
1 changed files with 2 additions and 1 deletions
|
|
@ -96,7 +96,8 @@ static void registry_event_global(void *data, uint32_t id, uint32_t permissions,
|
||||||
if (!spa_streq(type, PW_TYPE_INTERFACE_Metadata))
|
if (!spa_streq(type, PW_TYPE_INTERFACE_Metadata))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((str = spa_dict_lookup(props, PW_KEY_METADATA_NAME)) != NULL &&
|
if (props != NULL &&
|
||||||
|
(str = spa_dict_lookup(props, PW_KEY_METADATA_NAME)) != NULL &&
|
||||||
!spa_streq(str, d->opt_name))
|
!spa_streq(str, d->opt_name))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue