From e4a6782c48bb6d6a1d8bc74a82d0fabb0b288a47 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 13 Aug 2019 18:47:30 +0200 Subject: [PATCH] stream: always require the amount of buffers --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index 4dafcd698..44a27fedb 100644 --- a/src/stream.c +++ b/src/stream.c @@ -295,7 +295,7 @@ static const struct spa_pod *get_buffers_param(pa_stream *s, pa_buffer_attr *att param = spa_pod_builder_add_object(b, SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers, - SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(buffers, 3, MAX_BUFFERS), + SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(buffers, buffers, MAX_BUFFERS), SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(blocks), SPA_PARAM_BUFFERS_size, SPA_POD_CHOICE_RANGE_Int( size * stride,