mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pipewire-pulse: also store format/channels for sources
This commit is contained in:
parent
ba402209ba
commit
1bc383a7b7
1 changed files with 5 additions and 6 deletions
|
|
@ -273,19 +273,18 @@ static void get_service_data(struct module_zeroconf_publish_data *d,
|
|||
flags |= SOURCE_HARDWARE;
|
||||
}
|
||||
|
||||
s->ss = dev_info.ss;
|
||||
s->cm = dev_info.map;
|
||||
s->name = strdup(name);
|
||||
s->props = pw_properties_copy(o->props);
|
||||
|
||||
if (is_sink) {
|
||||
s->is_sink = true;
|
||||
s->service_type = SERVICE_TYPE_SINK;
|
||||
s->ss = dev_info.ss;
|
||||
s->cm = dev_info.map;
|
||||
s->name = strdup(name);
|
||||
s->props = pw_properties_copy(o->props);
|
||||
s->subtype = flags & SINK_HARDWARE ? SUBTYPE_HARDWARE : SUBTYPE_VIRTUAL;
|
||||
} else if (is_source) {
|
||||
s->is_sink = false;
|
||||
s->service_type = SERVICE_TYPE_SOURCE;
|
||||
s->name = strdup(name);
|
||||
s->props = pw_properties_copy(o->props);
|
||||
s->subtype = flags & SOURCE_HARDWARE ? SUBTYPE_HARDWARE : SUBTYPE_VIRTUAL;
|
||||
} else
|
||||
spa_assert_not_reached();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue