mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: fix IEC958 passthrough again
We need to create fake channels when parsing the IEC958 format or else we get an invalid format and IEC958 passthrough doesn't work. Ignore the IEC958 formats when collecting formats for the device or else the fake channels mess with the real channels of the device. See #1442
This commit is contained in:
parent
22ec01d5c0
commit
edb5664017
4 changed files with 12 additions and 5 deletions
|
|
@ -279,13 +279,13 @@ void collect_device_info(struct pw_manager_object *device, struct pw_manager_obj
|
|||
{
|
||||
struct spa_pod *copy = spa_pod_copy(p->param);
|
||||
spa_pod_fixate(copy);
|
||||
format_parse_param(copy, &dev_info->ss, &dev_info->map,
|
||||
format_parse_param(copy, true, &dev_info->ss, &dev_info->map,
|
||||
&defs->sample_spec, &defs->channel_map);
|
||||
free(copy);
|
||||
break;
|
||||
}
|
||||
case SPA_PARAM_Format:
|
||||
format_parse_param(p->param, &dev_info->ss, &dev_info->map,
|
||||
format_parse_param(p->param, true, &dev_info->ss, &dev_info->map,
|
||||
NULL, NULL);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue