mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-13 13:40:44 +00:00
only all one file to be bound per instance
This commit is contained in:
parent
5f18ec9459
commit
72f52aae19
@ -326,6 +326,10 @@ static switch_bool_t ladspa_callback(switch_media_bug_t *bug, void *user_data, s
|
|||||||
} else if (!strncasecmp(pvt->str_config[str_idx], "file:", 5)) {
|
} else if (!strncasecmp(pvt->str_config[str_idx], "file:", 5)) {
|
||||||
char *file = pvt->str_config[str_idx] + 5;
|
char *file = pvt->str_config[str_idx] + 5;
|
||||||
|
|
||||||
|
if (switch_test_flag((&pvt->fh), SWITCH_FILE_OPEN)) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(pvt->session),
|
||||||
|
SWITCH_LOG_ERROR, "CAN'T CONNECT FILE [%s] File already mapped\n", file);
|
||||||
|
} else {
|
||||||
if (switch_core_file_open(&pvt->fh,
|
if (switch_core_file_open(&pvt->fh,
|
||||||
file,
|
file,
|
||||||
read_impl.number_of_channels,
|
read_impl.number_of_channels,
|
||||||
@ -344,6 +348,7 @@ static switch_bool_t ladspa_callback(switch_media_bug_t *bug, void *user_data, s
|
|||||||
pvt->ldesc->connect_port(pvt->handle, i, pvt->file_buf);
|
pvt->ldesc->connect_port(pvt->handle, i, pvt->file_buf);
|
||||||
mapped = 1;
|
mapped = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
str_idx++;
|
str_idx++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user