media-session: handle unknown media

This commit is contained in:
Wim Taymans 2019-01-29 16:51:55 +01:00
parent 1baef2625c
commit 086166058a

View file

@ -994,6 +994,10 @@ static int rescan_node(struct impl *impl, struct node *node)
if ((media = spa_dict_lookup(props, PW_NODE_PROP_MEDIA)) == NULL)
media = node->media;
if (media == NULL) {
pw_log_debug(NAME" %p: node %d has unknown media", impl, node->obj.id);
return 0;
}
if ((category = spa_dict_lookup(props, PW_NODE_PROP_CATEGORY)) == NULL) {
pw_log_debug(NAME" %p: node %d find category from ports: %d %d",