mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
client-node: do check for data_loop
so that we don't crash on older pipewire. See #3243
This commit is contained in:
parent
5e2a7dbc4e
commit
0dcbbcad01
2 changed files with 8 additions and 0 deletions
|
|
@ -1699,6 +1699,11 @@ struct pw_impl_client_node *pw_impl_client_node_new(struct pw_resource *resource
|
|||
if (this->node == NULL)
|
||||
goto error_no_node;
|
||||
|
||||
if (this->node->data_loop == NULL) {
|
||||
errno = EIO;
|
||||
goto error_no_node;
|
||||
}
|
||||
|
||||
impl->data_loop = this->node->data_loop->loop;
|
||||
impl->data_system = this->node->data_loop->system;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue