From d18d350a7fa301d033994b3e5ff608250dc54779 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 31 Oct 2011 13:23:42 +0100 Subject: Dont show noentity errors They happen from time to time, i guess when an entity goes away but we request some updates for it, since we didnt got the remove event yet. Thats a usual case in asynchronous communication. --- src/pa-sink-ctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index db38688..799e0f3 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -67,6 +67,8 @@ sink_input_info_cb(pa_context *c, const pa_sink_input_info *i, struct context *ctx = userdata; if (is_last < 0) { + if (pa_context_errno(c) == PA_ERR_NOENTITY) + return; g_printerr("Failed to get sink input information: %s\n", pa_strerror(pa_context_errno(c))); return; @@ -107,6 +109,8 @@ sink_info_cb(pa_context *c, const pa_sink_info *i, struct context *ctx = userdata; if (is_last < 0) { + if (pa_context_errno(c) == PA_ERR_NOENTITY) + return; g_printerr("Failed to get sink information: %s\n", pa_strerror(pa_context_errno(c))); quit(ctx); -- cgit