From d968ab56a5ff582a9228ffd7b8d73600da3fd514 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 17 Dec 2020 12:25:12 +0100 Subject: [PATCH] a2dp: report PARAM_IO, as advertized --- spa/plugins/bluez5/a2dp-sink.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spa/plugins/bluez5/a2dp-sink.c b/spa/plugins/bluez5/a2dp-sink.c index 967ec3958..8646c8111 100644 --- a/spa/plugins/bluez5/a2dp-sink.c +++ b/spa/plugins/bluez5/a2dp-sink.c @@ -944,6 +944,19 @@ impl_node_port_enum_params(void *object, int seq, } break; + case SPA_PARAM_IO: + switch (result.index) { + case 0: + param = spa_pod_builder_add_object(&b, + SPA_TYPE_OBJECT_ParamIO, id, + SPA_PARAM_IO_id, SPA_POD_Id(SPA_IO_Buffers), + SPA_PARAM_IO_size, SPA_POD_Int(sizeof(struct spa_io_buffers))); + break; + default: + return 0; + } + break; + default: return -ENOENT; }