media-session: don't crash if obj->info is missing

This commit is contained in:
Pauli Virtanen 2021-09-09 17:51:44 +03:00 committed by Wim Taymans
parent e6d7b1aa70
commit 4f8ff41a45

View file

@ -214,6 +214,9 @@ static bool check_passthrough(struct node *node, struct node *peer)
struct spa_pod_builder b;
struct spa_pod *res;
if (peer->obj->info == NULL)
return false;
if (peer->obj->info->state == PW_NODE_STATE_RUNNING)
return false;