mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
|
|
@ -113,6 +113,8 @@ static int load_handle(struct data *data, struct spa_handle **handle, const char
|
|||
printf("can't enumerate factories: %s\n", spa_strerror(res));
|
||||
break;
|
||||
}
|
||||
if (factory->version < 1)
|
||||
continue;
|
||||
if (strcmp(factory->name, name))
|
||||
continue;
|
||||
|
||||
|
|
@ -207,6 +209,8 @@ static int make_node(struct data *data, struct spa_node **node, const char *lib,
|
|||
printf("can't enumerate factories: %s\n", spa_strerror(res));
|
||||
break;
|
||||
}
|
||||
if (factory->version < 1)
|
||||
continue;
|
||||
if (strcmp(factory->name, name))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue