summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-11-07 13:52:07 +0000
committerLennart Poettering <lennart@poettering.net>2007-11-07 13:52:07 +0000
commit1ef4bafc9a6ea0661e5b1a26948f8ab5b5b8afa2 (patch)
treee68dcb04a051717ba390b9b029258dca7d4b9fcd
parent1821f1f4994dfd0618ac290da54da683e7604f40 (diff)
warn if the sound server is not local
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2028 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/utils/pasuspender.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/pasuspender.c b/src/utils/pasuspender.c
index ae59086b..05d96a68 100644
--- a/src/utils/pasuspender.c
+++ b/src/utils/pasuspender.c
@@ -149,8 +149,10 @@ static void context_state_callback(pa_context *c, void *userdata) {
if (pa_context_is_local(c)) {
pa_operation_unref(pa_context_suspend_sink_by_index(c, PA_INVALID_INDEX, 1, suspend_complete, NULL));
pa_operation_unref(pa_context_suspend_source_by_index(c, PA_INVALID_INDEX, 1, suspend_complete, NULL));
- } else
+ } else {
+ fprintf(stderr, "WARNING: Sound server is not local, not suspending.\n");
start_child();
+ }
break;