diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-04-02 15:31:58 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-04-02 15:31:58 +0200 |
commit | 74ab04af26a34f9dcc69e29bc445513b823cab7e (patch) | |
tree | 843703e93d1f533d5afca5a3df479bdcc12d4cc7 | |
parent | c8f435ec41545b715bbcb615712a9558c3e5acf4 (diff) |
client-node: use BUFFER_INIT to reset io_buffers
-rw-r--r-- | src/modules/module-client-node/client-node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c index e516b7ab..29e6ccdf 100644 --- a/src/modules/module-client-node/client-node.c +++ b/src/modules/module-client-node/client-node.c @@ -1320,8 +1320,7 @@ static int port_init_mix(void *data, struct pw_impl_port_mix *mix) mix->io = SPA_MEMBER(impl->io_areas->map->ptr, mix->id * sizeof(struct spa_io_buffers), void); - mix->io->buffer_id = SPA_ID_INVALID; - mix->io->status = SPA_STATUS_NEED_DATA; + *mix->io = SPA_IO_BUFFERS_INIT; pw_log_debug(NAME " %p: init mix io %d %p %p", impl, mix->id, mix->io, impl->io_areas->map->ptr); |