From f673ddffd1e8a469133e9c9b222f480f7f3fa571 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 28 May 2023 19:39:07 +0100 Subject: [PATCH] pipewire: Only create up to 8 buffers This is how many we have to allocate. Thanks to @Starsam80 for catching this --- src/pipewire.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire.cpp b/src/pipewire.cpp index bddb495..a05346c 100644 --- a/src/pipewire.cpp +++ b/src/pipewire.cpp @@ -358,7 +358,7 @@ static void stream_handle_param_changed(void *data, uint32_t id, const struct sp const struct spa_pod *buffers_param = (const struct spa_pod *) spa_pod_builder_add_object(&builder, SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers, - SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(buffers, 1, 32), + SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(buffers, 1, 8), SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(1), SPA_PARAM_BUFFERS_size, SPA_POD_Int(shm_size), SPA_PARAM_BUFFERS_stride, SPA_POD_Int(state->shm_stride),