mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
warn if the sound server is not local
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2028 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
1821f1f499
commit
1ef4bafc9a
1 changed files with 3 additions and 1 deletions
|
|
@ -149,8 +149,10 @@ static void context_state_callback(pa_context *c, void *userdata) {
|
||||||
if (pa_context_is_local(c)) {
|
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_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));
|
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();
|
start_child();
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue