fmtconvert: always prefer just 1 buffer

This commit is contained in:
Wim Taymans 2019-08-13 18:42:40 +02:00
parent 697976f416
commit fa792a91a0

View file

@ -457,7 +457,7 @@ impl_node_port_enum_params(void *object, int seq,
if (other->n_buffers > 0) {
param = spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_ParamBuffers, id,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(other->n_buffers, 1, MAX_BUFFERS),
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(1, 1, MAX_BUFFERS),
SPA_PARAM_BUFFERS_blocks, SPA_POD_Int(port->blocks),
SPA_PARAM_BUFFERS_size, SPA_POD_Int(other->size / other->stride * port->stride),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(port->stride),