From 84e210ded969f7a4e4e24899a599bdad683f14c7 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Mon, 29 Nov 2021 14:17:38 -0500 Subject: [PATCH] spa: test: remove port EnumFormat param info Both fakesink and fakesrc nodes don't support it. --- spa/plugins/test/fakesink.c | 11 +++++------ spa/plugins/test/fakesrc.c | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/spa/plugins/test/fakesink.c b/spa/plugins/test/fakesink.c index f7a8c453d..70ea16abe 100644 --- a/spa/plugins/test/fakesink.c +++ b/spa/plugins/test/fakesink.c @@ -782,13 +782,12 @@ impl_init(const struct spa_handle_factory *factory, port->info.flags = SPA_PORT_FLAG_NO_REF; if (this->props.live) port->info.flags |= SPA_PORT_FLAG_LIVE; - port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ); - port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ); - port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, 0); - port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE); - port->params[4] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0); + port->params[0] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ); + port->params[1] = SPA_PARAM_INFO(SPA_PARAM_IO, 0); + port->params[2] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE); + port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0); port->info.params = port->params; - port->info.n_params = 5; + port->info.n_params = 4; spa_list_init(&port->ready); diff --git a/spa/plugins/test/fakesrc.c b/spa/plugins/test/fakesrc.c index 1d3f0dc27..34a444bc9 100644 --- a/spa/plugins/test/fakesrc.c +++ b/spa/plugins/test/fakesrc.c @@ -814,13 +814,12 @@ impl_init(const struct spa_handle_factory *factory, port->info.flags = SPA_PORT_FLAG_NO_REF; if (this->props.live) port->info.flags |= SPA_PORT_FLAG_LIVE; - port->params[0] = SPA_PARAM_INFO(SPA_PARAM_EnumFormat, SPA_PARAM_INFO_READ); - port->params[1] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ); - port->params[2] = SPA_PARAM_INFO(SPA_PARAM_IO, 0); - port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE); - port->params[4] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0); + port->params[0] = SPA_PARAM_INFO(SPA_PARAM_Meta, SPA_PARAM_INFO_READ); + port->params[1] = SPA_PARAM_INFO(SPA_PARAM_IO, 0); + port->params[2] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE); + port->params[3] = SPA_PARAM_INFO(SPA_PARAM_Buffers, 0); port->info.params = port->params; - port->info.n_params = 5; + port->info.n_params = 4; spa_list_init(&port->empty);