protocol: also return marshal with higher version

The marshaller needs to be of the requested version or newer.
This commit is contained in:
Wim Taymans 2021-08-03 17:28:01 +02:00
parent d25bb0e20f
commit edfa210656

View file

@ -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;
}