From 9c8b686389b0694c38ba1a0cfbc5864d1a73f964 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 5 Mar 2020 09:11:09 +0200 Subject: [PATCH] protocol-native: Fix error code Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/816 --- src/pulsecore/protocol-native.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index 72457418a..f72ed4184 100644 --- a/src/pulsecore/protocol-native.c +++ b/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; }