mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
factory: do more version checks
So that we don't accidentally load an old plugin.
This commit is contained in:
parent
539be881ba
commit
4cb2d58e89
6 changed files with 23 additions and 2 deletions
|
|
@ -172,6 +172,11 @@ static const struct spa_handle_factory *find_factory(struct plugin *plugin, cons
|
|||
break;
|
||||
goto out;
|
||||
}
|
||||
if (factory->version < 1) {
|
||||
pw_log_warn("factory version %d < 1 not supported",
|
||||
factory->version);
|
||||
continue;
|
||||
}
|
||||
if (strcmp(factory->name, factory_name) == 0)
|
||||
return factory;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue