Skip to content

Commit

Permalink
Fix jack_port_get_connections when shutting down
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Mar 16, 2024
1 parent c6a567c commit 7d0b7a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/effects.c
Original file line number Diff line number Diff line change
Expand Up @@ -5595,9 +5595,11 @@ int effects_remove(int effect_id)
{
for (int i = 0; g_capture_ports[i]; i++)
{
const char **capture_connections =
jack_port_get_connections(jack_port_by_name(g_jack_global_client, g_capture_ports[i]));
jack_port_t *port = jack_port_by_name(g_jack_global_client, g_capture_ports[i]);
if (! port)
continue;

const char **capture_connections = jack_port_get_connections(port);
if (capture_connections)
{
for (int j = 0; capture_connections[j]; j++)
Expand Down

0 comments on commit 7d0b7a2

Please sign in to comment.