mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: handle error during create
Use the create-tag in the error when the stream fails. This way the client can know when something failed during create. See #430
This commit is contained in:
parent
23bcc21240
commit
8b048279f1
1 changed files with 1 additions and 1 deletions
|
|
@ -1221,7 +1221,7 @@ static void stream_state_changed(void *data, enum pw_stream_state old,
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case PW_STREAM_STATE_ERROR:
|
case PW_STREAM_STATE_ERROR:
|
||||||
reply_error(client, -1, -1, -EIO);
|
reply_error(client, -1, stream->create_tag, -EIO);
|
||||||
stream->done = true;
|
stream->done = true;
|
||||||
break;
|
break;
|
||||||
case PW_STREAM_STATE_UNCONNECTED:
|
case PW_STREAM_STATE_UNCONNECTED:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue