stream: generate PeerCapbility for old servers

Automatically make an empty PeerCapability param when we receive a
Latency event without a PeerCapability. This makes new client always
receive a PeerCapability param, even when the other side did not provide
anything or when the server is too old to collect them.
This commit is contained in:
Wim Taymans 2025-11-14 12:30:56 +01:00
parent 941fc5f51c
commit 3f292e3ce3
3 changed files with 26 additions and 1 deletions

View file

@ -277,6 +277,7 @@ static void parse_peer_capability(struct data *data, const struct spa_pod *param
struct spa_peer_param_info info;
void *state = NULL;
fprintf(stderr, "peer capability\n");
while (spa_peer_param_parse(param, &info, sizeof(info), &state) == 1) {
struct spa_param_dict_info di;