From b17007ab0c0bc3369c50158a706dba488d4b082b Mon Sep 17 00:00:00 2001 From: casey langen Date: Mon, 25 Jul 2022 19:34:54 -0700 Subject: [PATCH] Fix PipeWireOut compile. --- src/plugins/pipewireout/PipeWireOut.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/pipewireout/PipeWireOut.h b/src/plugins/pipewireout/PipeWireOut.h index 961a81465..1f33d5511 100644 --- a/src/plugins/pipewireout/PipeWireOut.h +++ b/src/plugins/pipewireout/PipeWireOut.h @@ -135,8 +135,8 @@ class PipeWireOut : public IOutput { this->buffer = buffer; if (buffer) { struct spa_buffer* spaBuffer = buffer->buffer; - this->writePtr = (char*) spaBuffer->data[0].data; - this->remaining = spaBuffer->data[0].maxsize; + this->writePtr = (char*) spaBuffer->datas[0].data; + this->remaining = spaBuffer->datas[0].maxsize; this->total = this->remaining; } else { @@ -155,7 +155,7 @@ class PipeWireOut : public IOutput { } void Finalize(pw_stream* stream, uint32_t stride) { if (this->Valid()) { - spa_data& data = this->buffer->buffer->data[0]; + spa_data& data = this->buffer->buffer->datas[0]; data.chunk->offset = 0; data.chunk->stride = stride; data.chunk->size = this->total - this->remaining;