mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
policy-node: don't crash without metadata
This commit is contained in:
parent
72e03e3dc8
commit
3673265ae2
1 changed files with 3 additions and 0 deletions
|
|
@ -810,6 +810,9 @@ static void refresh_auto_default_nodes(struct impl *impl)
|
|||
{
|
||||
struct default_node *def;
|
||||
|
||||
if (impl->session->metadata == NULL)
|
||||
return;
|
||||
|
||||
/* Auto set default nodes */
|
||||
for (def = impl->defaults; def->key != NULL; ++def) {
|
||||
struct node *node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue