mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
make property for monitors
This commit is contained in:
parent
a672a9ee67
commit
009a33668b
3 changed files with 5 additions and 3 deletions
|
|
@ -302,7 +302,7 @@ on_core_info (void *data, const struct pw_core_info *info)
|
|||
if (info == NULL || info->props == NULL)
|
||||
return;
|
||||
|
||||
value = spa_dict_lookup (info->props, "monitors");
|
||||
value = spa_dict_lookup (info->props, PW_KEY_CORE_MONITORS);
|
||||
if (value) {
|
||||
gchar **monitors = g_strsplit (value, ",", -1);
|
||||
gint i;
|
||||
|
|
|
|||
|
|
@ -241,11 +241,11 @@ static void update_monitor(struct pw_core *core, const char *name)
|
|||
props = pw_core_get_properties(core);
|
||||
|
||||
if (props)
|
||||
monitors = pw_properties_get(props, "monitors");
|
||||
monitors = pw_properties_get(props, PW_KEY_CORE_MONITORS);
|
||||
else
|
||||
monitors = NULL;
|
||||
|
||||
item.key = "monitors";
|
||||
item.key = PW_KEY_CORE_MONITORS;
|
||||
if (monitors == NULL)
|
||||
item.value = name;
|
||||
else
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ extern "C" {
|
|||
#define PW_KEY_SEC_GID "pipewire.sec.gid" /**< client gid, set by protocol*/
|
||||
#define PW_KEY_SEC_LABEL "pipewire.sec.label" /**< client security label, set by protocol*/
|
||||
|
||||
#define PW_KEY_CORE_MONITORS "core.monitors" /**< the apis monitored by core. */
|
||||
|
||||
/* remote keys */
|
||||
#define PW_KEY_REMOTE_NAME "remote.name" /**< The name of the remote to connect to,
|
||||
* default env(PIPEWIRE_REMOTE) or pipewire-0 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue