diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pa-sink-ctl.c | 4 |
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); |