mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
policy-node: clear target node for dont-reconnect streams
When a stream is marked don't reconnect, clear the target-node so that it does not accidentally gets linked to a save target. This makes it kill the monitor stream from pavucontrol after a client disconnects.
This commit is contained in:
parent
9f766dd708
commit
34c33ccdbf
1 changed files with 3 additions and 0 deletions
|
|
@ -643,6 +643,9 @@ static int rescan_node(struct impl *impl, struct node *n)
|
|||
if (path_id != SPA_ID_INVALID) {
|
||||
pw_log_debug(NAME " %p: target:%d", impl, path_id);
|
||||
|
||||
if (!reconnect)
|
||||
n->obj->target_node = NULL;
|
||||
|
||||
if ((obj = sm_media_session_find_object(impl->session, path_id)) != NULL) {
|
||||
pw_log_debug(NAME " %p: found target:%d type:%s", impl,
|
||||
path_id, obj->type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue