mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
module-filter-chain: use pw_split_walk correctly
This commit is contained in:
parent
cb46c8c5f9
commit
8a9e7dc1c7
1 changed files with 2 additions and 2 deletions
|
|
@ -214,7 +214,7 @@ struct fc_plugin *load_ladspa_plugin(const struct spa_support *support, uint32_t
|
||||||
struct fc_plugin *pl = NULL;
|
struct fc_plugin *pl = NULL;
|
||||||
|
|
||||||
if (plugin[0] != '/') {
|
if (plugin[0] != '/') {
|
||||||
const char *search_dirs, *p;
|
const char *search_dirs, *p, *state = NULL;
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
|
@ -229,7 +229,7 @@ struct fc_plugin *load_ladspa_plugin(const struct spa_support *support, uint32_t
|
||||||
*/
|
*/
|
||||||
errno = ENAMETOOLONG;
|
errno = ENAMETOOLONG;
|
||||||
|
|
||||||
while ((p = pw_split_walk(NULL, ":", &len, &search_dirs))) {
|
while ((p = pw_split_walk(search_dirs, ":", &len, &state))) {
|
||||||
int pathlen;
|
int pathlen;
|
||||||
|
|
||||||
if (len >= sizeof(path))
|
if (len >= sizeof(path))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue