mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
stream: handle set_control when not connected
When we are not connected, return -EIO from set_control instead of crashing later.
This commit is contained in:
parent
4efb1a03cb
commit
e6c2ac3450
1 changed files with 3 additions and 0 deletions
|
|
@ -2081,6 +2081,9 @@ int pw_stream_set_control(struct pw_stream *stream, uint32_t id, uint32_t n_valu
|
|||
struct spa_pod *pod;
|
||||
struct control *c;
|
||||
|
||||
if (impl->node == NULL)
|
||||
return -EIO;
|
||||
|
||||
va_start(varargs, values);
|
||||
|
||||
spa_pod_builder_push_object(&b, &f[0], SPA_TYPE_OBJECT_Props, SPA_PARAM_Props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue