From edfa210656ba702f26a17b96c13abaf1b193d5a2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 3 Aug 2021 17:28:01 +0200 Subject: [PATCH] protocol: also return marshal with higher version The marshaller needs to be of the requested version or newer. --- src/pipewire/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/protocol.c b/src/pipewire/protocol.c index 5bf8ae3c1..ba209a07d 100644 --- a/src/pipewire/protocol.c +++ b/src/pipewire/protocol.c @@ -166,7 +166,7 @@ pw_protocol_get_marshal(struct pw_protocol *protocol, const char *type, uint32_t spa_list_for_each(impl, &protocol->marshal_list, link) { if (spa_streq(impl->marshal->type, type) && - impl->marshal->version == version && + impl->marshal->version >= version && (impl->marshal->flags & flags) == flags) return impl->marshal; }