mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: the device changed when EnumRoute changes
We use EnumRoute of the card to fill in the ports of the device so when EnumRoute changes, the associated devices also needs a change event.
This commit is contained in:
parent
281451db85
commit
306c90618f
1 changed files with 2 additions and 1 deletions
|
|
@ -378,7 +378,8 @@ static void device_event_param(void *data, int seq,
|
|||
if (p == NULL)
|
||||
return;
|
||||
|
||||
if (id == SPA_PARAM_Route && !has_param(&o->this.param_list, p)) {
|
||||
if ((id == SPA_PARAM_Route || id == SPA_PARAM_EnumRoute) &&
|
||||
!has_param(&o->this.param_list, p)) {
|
||||
uint32_t idx, device;
|
||||
if (spa_pod_parse_object(param,
|
||||
SPA_TYPE_OBJECT_ParamRoute, NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue