diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-09-09 17:17:03 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-09-09 17:17:03 +0200 |
commit | 9c9bff8fe915e6e45e4a23b943b0242c69501ef1 (patch) | |
tree | 8a0091e5693a05b166a2fca36205348c39c8470a /src/modules/module-client-node/client-node.c | |
parent | 3340f3cacc056ad51d5a601da94b431c2c108e54 (diff) |
data-loop: add _wait function
Add function to wait for one iteration of the loop. This can be used
by specialized implementations of the data loop, like jack.
Diffstat (limited to 'src/modules/module-client-node/client-node.c')
-rw-r--r-- | src/modules/module-client-node/client-node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index 4d773ea9..f8017c04 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -1254,8 +1254,8 @@ static void node_initialized(void *data) struct spa_system *data_system = impl->node.data_system; size_t size; - impl->fds[0] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC); - impl->fds[1] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC); + impl->fds[0] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK); + impl->fds[1] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK); impl->other_fds[0] = impl->fds[1]; impl->other_fds[1] = impl->fds[0]; node->data_source.fd = impl->fds[0]; @@ -1537,7 +1537,7 @@ static void node_peer_added(void *data, struct pw_node *peer) pw_log_debug(NAME " %p: can't ensure mem: %m", this); return; } - pw_log_debug(NAME " %p: peer %p %u added %u", &impl->this, peer, + pw_log_debug(NAME " %p: peer %p id:%u added mem_id:%u", &impl->this, peer, peer->info.id, m->id); if (this->resource == NULL) |