summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-02 15:31:58 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-02 15:31:58 +0200
commit74ab04af26a34f9dcc69e29bc445513b823cab7e (patch)
tree843703e93d1f533d5afca5a3df479bdcc12d4cc7
parentc8f435ec41545b715bbcb615712a9558c3e5acf4 (diff)
client-node: use BUFFER_INIT to reset io_buffers
-rw-r--r--src/modules/module-client-node/client-node.c3
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);