mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
bluez5: handle info == NULL when parsing codecs
This commit is contained in:
parent
23823867b0
commit
344eb2baa3
1 changed files with 1 additions and 1 deletions
|
|
@ -2940,7 +2940,7 @@ static int parse_codec_array(struct spa_bt_monitor *this, const struct spa_dict
|
||||||
if (codecs == NULL)
|
if (codecs == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
if ((str = spa_dict_lookup(info, "bluez5.codecs")) == NULL)
|
if (info == NULL || (str = spa_dict_lookup(info, "bluez5.codecs")) == NULL)
|
||||||
goto fallback;
|
goto fallback;
|
||||||
|
|
||||||
spa_json_init(&it, str, strlen(str));
|
spa_json_init(&it, str, strlen(str));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue