mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
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:
parent
5b2b93f915
commit
75af02edcd
2 changed files with 44 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue