stream: add Format and EnumFormat on stream nodes

The stream only has one format/enumformat list for the one port it has
so also expose this on the node. We can then remove the adapter for
video.

We can also now show midi (control) streams as the format in pw-top.
This commit is contained in:
Wim Taymans 2022-09-06 20:42:19 +02:00
parent 5b2b93f915
commit 75af02edcd
2 changed files with 44 additions and 28 deletions

View file

@ -211,6 +211,13 @@ static void node_param(void *data, int seq,
}
}
break;
case SPA_MEDIA_TYPE_application:
switch(media_subtype) {
case SPA_MEDIA_SUBTYPE_control:
snprintf(n->format, sizeof(n->format), "%s", "CONTROL");
break;
}
break;
}
break;
}