summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-31 13:23:42 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-31 13:25:25 +0100
commitd18d350a7fa301d033994b3e5ff608250dc54779 (patch)
tree032d8963c2a6617c276438bba35c10f778bd21fc
parent2c305d548bd069d84f864e6c3a91b1b8976d59e9 (diff)
downloadpa-sink-ctl-d18d350a7fa301d033994b3e5ff608250dc54779.tar.gz
pa-sink-ctl-d18d350a7fa301d033994b3e5ff608250dc54779.tar.bz2
pa-sink-ctl-d18d350a7fa301d033994b3e5ff608250dc54779.zip
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.
-rw-r--r--src/pa-sink-ctl.c4
1 files changed, 4 insertions, 0 deletions
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);