mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-20 06:46:31 -04:00
tools: connect to the manager socket by default
This gives the tools unrestricted access by default if access.socket is defined in the configuration access module.
This commit is contained in:
parent
b12b7f785e
commit
14b74962d6
9 changed files with 56 additions and 15 deletions
|
|
@ -150,6 +150,8 @@ static void do_quit(void *userdata, int signal_number)
|
|||
|
||||
static int dump_filter(struct data *data)
|
||||
{
|
||||
const char *remote_name;
|
||||
|
||||
data->loop = pw_main_loop_new(NULL);
|
||||
if (data->loop == NULL)
|
||||
return -errno;
|
||||
|
|
@ -157,11 +159,15 @@ static int dump_filter(struct data *data)
|
|||
pw_loop_add_signal(pw_main_loop_get_loop(data->loop), SIGINT, do_quit, data);
|
||||
pw_loop_add_signal(pw_main_loop_get_loop(data->loop), SIGTERM, do_quit, data);
|
||||
|
||||
remote_name = "[" PW_DEFAULT_REMOTE "-manager," PW_DEFAULT_REMOTE "]";
|
||||
if (data->opt_remote)
|
||||
remote_name = data->opt_remote;
|
||||
|
||||
data->filter = pw_filter_new_simple(
|
||||
pw_main_loop_get_loop(data->loop),
|
||||
"midi-dump",
|
||||
pw_properties_new(
|
||||
PW_KEY_REMOTE_NAME, data->opt_remote,
|
||||
PW_KEY_REMOTE_NAME, remote_name,
|
||||
PW_KEY_MEDIA_TYPE, "Midi",
|
||||
PW_KEY_MEDIA_CATEGORY, "Filter",
|
||||
PW_KEY_MEDIA_ROLE, "DSP",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue