mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-21 10:16:14 +00:00
pw-cat: exit when we are unconnected
We get unconnected when the session manager kills us when it can't make a link. See #2731
This commit is contained in:
parent
39a1887a0b
commit
0ab6452b7e
|
@ -745,6 +745,11 @@ on_state_changed(void *userdata, enum pw_stream_state old,
|
|||
error);
|
||||
pw_main_loop_quit(data->loop);
|
||||
break;
|
||||
case PW_STREAM_STATE_UNCONNECTED:
|
||||
printf("stream node %"PRIu32" unconnected\n",
|
||||
pw_stream_get_node_id(data->stream));
|
||||
pw_main_loop_quit(data->loop);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue