mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-10 04:27:48 -05:00
pulse-server: filter out iec958 PCM formats
Convert the iec958 PCM formats differently when enumerating the sink formats. This way we can still convert the param to a format_info.
This commit is contained in:
parent
93e9efc1e4
commit
a25396c1eb
2 changed files with 6 additions and 2 deletions
|
|
@ -3578,8 +3578,11 @@ static int fill_sink_info(struct client *client, struct message *m,
|
|||
spa_zero(info[n_info]);
|
||||
if (format_info_from_param(&info[n_info], p->param, index++) < 0)
|
||||
break;
|
||||
if (info[n_info].encoding == ENCODING_ANY)
|
||||
if (info[n_info].encoding == ENCODING_ANY ||
|
||||
(info[n_info].encoding == ENCODING_PCM && info[n_info].props != NULL)) {
|
||||
format_info_clear(&info[n_info]);
|
||||
continue;
|
||||
}
|
||||
n_info++;
|
||||
}
|
||||
}
|
||||
|
|
@ -3590,6 +3593,7 @@ static int fill_sink_info(struct client *client, struct message *m,
|
|||
message_put(m,
|
||||
TAG_FORMAT_INFO, &info[i],
|
||||
TAG_INVALID);
|
||||
format_info_clear(&info[i]);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue