From 096db6d87de7ed3aecb698150f247ef1e2a6fcb3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 17 Dec 2019 11:35:28 +0100 Subject: [PATCH] link: set the object id correctly Before using the param from EnumFormat as a format param, set the object ID to PARAM_Format to avoid confusion later on. Clients might use the object id to enumerate parameters and then fail to enumerate the current Format because the id is wrong. --- src/pipewire/impl-link.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index 1a41a9cef..b3e11fdc4 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -309,6 +309,8 @@ static int do_negotiate(struct pw_impl_link *this) if (pw_log_level_enabled(SPA_LOG_LEVEL_DEBUG)) spa_debug_format(2, NULL, format); + SPA_POD_OBJECT_ID(format) = SPA_PARAM_Format; + if (out_state == PW_IMPL_PORT_STATE_CONFIGURE) { pw_log_debug(NAME" %p: doing set format on output", this); if ((res = pw_impl_port_set_param(output,