mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -205,8 +205,8 @@ static void inspect_factory(struct data *data, const struct spa_handle_factory *
|
|||
|
||||
printf("factory version:\t\t%d\n", factory->version);
|
||||
printf("factory name:\t\t'%s'\n", factory->name);
|
||||
if (factory->version < SPA_VERSION_HANDLE_FACTORY) {
|
||||
printf("\tno further info for version < %d\n", SPA_VERSION_HANDLE_FACTORY);
|
||||
if (factory->version < 1) {
|
||||
printf("\tno further info for version %d < 1\n", factory->version);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue