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:
Wim Taymans 2020-12-01 09:37:40 +01:00
parent 23bcc21240
commit 8b048279f1

View file

@ -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: