mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: SET_DEFAULT_* commands change the configured values
This commit is contained in:
parent
db6baf6188
commit
d617d7e1a3
2 changed files with 3 additions and 1 deletions
|
|
@ -417,4 +417,6 @@ static uint32_t port_type_value(const char *port_type)
|
|||
|
||||
#define METADATA_DEFAULT_SINK "default.audio.sink"
|
||||
#define METADATA_DEFAULT_SOURCE "default.audio.source"
|
||||
#define METADATA_CONFIG_DEFAULT_SINK "default.configured.audio.sink"
|
||||
#define METADATA_CONFIG_DEFAULT_SOURCE "default.configured.audio.source"
|
||||
#define METADATA_TARGET_NODE "target.node"
|
||||
|
|
|
|||
|
|
@ -4459,7 +4459,7 @@ static int do_set_default(struct client *client, uint32_t command, uint32_t tag,
|
|||
|
||||
if ((res = pw_manager_set_metadata(manager, client->metadata_default,
|
||||
PW_ID_CORE,
|
||||
sink ? METADATA_DEFAULT_SINK : METADATA_DEFAULT_SOURCE,
|
||||
sink ? METADATA_CONFIG_DEFAULT_SINK : METADATA_CONFIG_DEFAULT_SOURCE,
|
||||
SPA_TYPE_INFO_BASE"Id", "%d", o->id)) < 0)
|
||||
return res;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue