policy-node: only send PortConfig on audio nodes

0.2 version don't handle this correctly.

Possibly fixes #270
This commit is contained in:
Wim Taymans 2020-09-02 14:19:45 +02:00
parent 6b50279364
commit dd0f4c7295

View file

@ -150,6 +150,9 @@ static int configure_node(struct node *node, struct spa_audio_info *info, bool f
if (node->configured && !force)
return 0;
if (strcmp(node->media, "Audio") != 0)
return 0;
format = node->format;
if (info != NULL && info->info.raw.channels > 0) {