mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
remote: don't try to update the source when it's gone
This commit is contained in:
parent
f5c78cc2a2
commit
a4ff7296b2
1 changed files with 6 additions and 2 deletions
|
|
@ -888,9 +888,11 @@ static void client_node_command(void *object, uint32_t seq, const struct spa_com
|
|||
case SPA_NODE_COMMAND_Pause:
|
||||
pw_log_debug("node %p: pause %d", proxy, seq);
|
||||
|
||||
pw_loop_update_io(remote->core->data_loop,
|
||||
if (data->rtsocket_source) {
|
||||
pw_loop_update_io(remote->core->data_loop,
|
||||
data->rtsocket_source,
|
||||
SPA_IO_ERR | SPA_IO_HUP);
|
||||
}
|
||||
|
||||
if ((res = spa_node_send_command(data->node->node, command)) < 0)
|
||||
pw_log_warn("node %p: pause failed", proxy);
|
||||
|
|
@ -900,9 +902,11 @@ static void client_node_command(void *object, uint32_t seq, const struct spa_com
|
|||
case SPA_NODE_COMMAND_Start:
|
||||
pw_log_debug("node %p: start %d", proxy, seq);
|
||||
|
||||
pw_loop_update_io(remote->core->data_loop,
|
||||
if (data->rtsocket_source) {
|
||||
pw_loop_update_io(remote->core->data_loop,
|
||||
data->rtsocket_source,
|
||||
SPA_IO_IN | SPA_IO_ERR | SPA_IO_HUP);
|
||||
}
|
||||
|
||||
if ((res = spa_node_send_command(data->node->node, command)) < 0)
|
||||
pw_log_warn("node %p: start failed", proxy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue