mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Add example to play sine wave
Various build fixes and cleanups Move port_add to private and make node ports based on implementation. Improve pull based scheduling on remote nodes
This commit is contained in:
parent
36ac8a6545
commit
21cd5a2918
26 changed files with 640 additions and 185 deletions
|
|
@ -693,6 +693,8 @@ impl_add_server(struct pw_protocol *protocol,
|
|||
spa_list_init(&this->client_list);
|
||||
this->destroy = destroy_server;
|
||||
|
||||
spa_list_append(&protocol->server_list, &this->link);
|
||||
|
||||
name = get_name(pw_core_get_properties(core));
|
||||
|
||||
if (!init_socket_name(s, name))
|
||||
|
|
@ -704,8 +706,6 @@ impl_add_server(struct pw_protocol *protocol,
|
|||
if (!add_socket(protocol, s))
|
||||
goto error;
|
||||
|
||||
spa_list_append(&protocol->server_list, &this->link);
|
||||
|
||||
pw_loop_add_hook(pw_core_get_main_loop(core), &s->hook, &impl_hooks, s);
|
||||
|
||||
pw_log_info("protocol-native %p: Added server %p", protocol, this);
|
||||
|
|
@ -831,7 +831,8 @@ static bool module_init(struct pw_module *module, struct pw_properties *properti
|
|||
|
||||
if ((val = pw_properties_get(pw_core_get_properties(core), "pipewire.daemon"))) {
|
||||
if (atoi(val) == 1)
|
||||
impl_add_server(this, core, properties);
|
||||
if (impl_add_server(this, core, properties) == NULL)
|
||||
return false;
|
||||
}
|
||||
|
||||
pw_module_add_listener(module, &d->module_listener, &module_events, d);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue