mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
module-netjack2: handle NULL socket
The socket might be NULL when it got destroyed due to an error.
This commit is contained in:
parent
59756a7c5d
commit
4bf526ddf4
1 changed files with 2 additions and 1 deletions
|
|
@ -328,7 +328,8 @@ static void sink_process(void *d, struct spa_io_position *position)
|
|||
follower->peer.cycle++;
|
||||
netjack2_send_data(&follower->peer, nframes, midi, n_midi, audio, n_audio);
|
||||
|
||||
pw_loop_update_io(s->impl->data_loop->loop, follower->socket, SPA_IO_IN);
|
||||
if (follower->socket)
|
||||
pw_loop_update_io(s->impl->data_loop->loop, follower->socket, SPA_IO_IN);
|
||||
}
|
||||
|
||||
static void source_process(void *d, struct spa_io_position *position)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue