[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] protocol-native: Fix error code
Tanu Kaskinen
gitlab at gitlab.freedesktop.org
Thu Mar 26 15:12:21 UTC 2020
Tanu Kaskinen pushed to branch master at PulseAudio / pulseaudio
Commits:
9c8b6863 by Tanu Kaskinen at 2020-03-26T15:07:00+00:00
protocol-native: Fix error code
Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/816
- - - - -
1 changed file:
- src/pulsecore/protocol-native.c
Changes:
=====================================
src/pulsecore/protocol-native.c
=====================================
@@ -2145,7 +2145,7 @@ static void command_delete_stream(pa_pdispatch *pd, uint32_t command, uint32_t t
case PA_COMMAND_DELETE_PLAYBACK_STREAM: {
playback_stream *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;
}
@@ -2156,7 +2156,7 @@ static void command_delete_stream(pa_pdispatch *pd, uint32_t command, uint32_t t
case PA_COMMAND_DELETE_RECORD_STREAM: {
record_stream *s;
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;
}
@@ -2168,7 +2168,7 @@ static void command_delete_stream(pa_pdispatch *pd, uint32_t command, uint32_t t
upload_stream *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;
}
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/9c8b686389b0694c38ba1a0cfbc5864d1a73f964
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/9c8b686389b0694c38ba1a0cfbc5864d1a73f964
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20200326/96d59bb1/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list