links: use n_output_lists for link_t

This commit is contained in:
Kamil Trzcinski
2023-02-24 19:59:51 +01:00
parent 17fc87a2d8
commit f7f4eba9ca
5 changed files with 18 additions and 12 deletions

View File

@ -85,7 +85,7 @@ static nlohmann::json links_status_json()
nlohmann::json link_json;
link_json["source"] = link->capture_list->name;
for (int j = 0; link->output_lists[j]; j++) {
for (int j = 0; j < link->n_output_lists; j++) {
link_json["sinks"][j] = link->output_lists[j]->name;
}
for (int j = 0; j < link->n_callbacks; j++) {