mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
protocol-native: Fix error code
Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/816
This commit is contained in:
parent
4dc73f5167
commit
9c8b686389
1 changed files with 3 additions and 3 deletions
|
|
@ -2145,7 +2145,7 @@ static void command_delete_stream(pa_pdispatch *pd, uint32_t command, uint32_t t
|
||||||
case PA_COMMAND_DELETE_PLAYBACK_STREAM: {
|
case PA_COMMAND_DELETE_PLAYBACK_STREAM: {
|
||||||
playback_stream *s;
|
playback_stream *s;
|
||||||
if (!(s = pa_idxset_get_by_index(c->output_streams, channel)) || !playback_stream_isinstance(s)) {
|
if (!(s = pa_idxset_get_by_index(c->output_streams, channel)) || !playback_stream_isinstance(s)) {
|
||||||
pa_pstream_send_error(c->pstream, tag, PA_ERR_EXIST);
|
pa_pstream_send_error(c->pstream, tag, PA_ERR_NOENTITY);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2156,7 +2156,7 @@ static void command_delete_stream(pa_pdispatch *pd, uint32_t command, uint32_t t
|
||||||
case PA_COMMAND_DELETE_RECORD_STREAM: {
|
case PA_COMMAND_DELETE_RECORD_STREAM: {
|
||||||
record_stream *s;
|
record_stream *s;
|
||||||
if (!(s = pa_idxset_get_by_index(c->record_streams, channel))) {
|
if (!(s = pa_idxset_get_by_index(c->record_streams, channel))) {
|
||||||
pa_pstream_send_error(c->pstream, tag, PA_ERR_EXIST);
|
pa_pstream_send_error(c->pstream, tag, PA_ERR_NOENTITY);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2168,7 +2168,7 @@ static void command_delete_stream(pa_pdispatch *pd, uint32_t command, uint32_t t
|
||||||
upload_stream *s;
|
upload_stream *s;
|
||||||
|
|
||||||
if (!(s = pa_idxset_get_by_index(c->output_streams, channel)) || !upload_stream_isinstance(s)) {
|
if (!(s = pa_idxset_get_by_index(c->output_streams, channel)) || !upload_stream_isinstance(s)) {
|
||||||
pa_pstream_send_error(c->pstream, tag, PA_ERR_EXIST);
|
pa_pstream_send_error(c->pstream, tag, PA_ERR_NOENTITY);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue