summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-12-17 11:35:28 +0100
committerWim Taymans <wtaymans@redhat.com>2019-12-17 11:35:28 +0100
commit096db6d87de7ed3aecb698150f247ef1e2a6fcb3 (patch)
tree239c7ced1a1f908cf16bcf7c1a2a378cd43dabc3
parentd3f4dda51b061f58e8a486c51e7ca530fdc4dd62 (diff)
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.
-rw-r--r--src/pipewire/impl-link.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c
index 1a41a9ce..b3e11fdc 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,