mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
filter-chain: support absolute plugin path
This commit is contained in:
parent
00e85a252c
commit
b2053b9d49
1 changed files with 8 additions and 5 deletions
|
|
@ -688,13 +688,16 @@ static struct ladspa_handle *ladspa_handle_load(struct impl *impl, const char *p
|
||||||
{
|
{
|
||||||
struct ladspa_handle *hndl;
|
struct ladspa_handle *hndl;
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
const char *e;
|
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if ((e = getenv("LADSPA_PATH")) == NULL)
|
if (plugin[0] != '/') {
|
||||||
e = "/usr/lib64/ladspa";
|
const char *e;
|
||||||
|
if ((e = getenv("LADSPA_PATH")) == NULL)
|
||||||
snprintf(path, sizeof(path), "%s/%s.so", e, plugin);
|
e = "/usr/lib64/ladspa";
|
||||||
|
snprintf(path, sizeof(path), "%s/%s.so", e, plugin);
|
||||||
|
} else {
|
||||||
|
snprintf(path, sizeof(path), "%s", plugin);
|
||||||
|
}
|
||||||
|
|
||||||
spa_list_for_each(hndl, &impl->ladspa_handle_list, link) {
|
spa_list_for_each(hndl, &impl->ladspa_handle_list, link) {
|
||||||
if (strcmp(hndl->path, path) == 0) {
|
if (strcmp(hndl->path, path) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue