summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libao2/ao_pulse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libao2/ao_pulse.c b/libao2/ao_pulse.c
index 83270bbfcf..444b85814d 100644
--- a/libao2/ao_pulse.c
+++ b/libao2/ao_pulse.c
@@ -393,7 +393,8 @@ static int control(int cmd, void *arg) {
}
pa_threaded_mainloop_lock(mainloop);
- if (!(o = pa_context_set_sink_input_volume(context, pa_stream_get_index(stream), &volume, NULL, NULL))) {
+ o = pa_context_set_sink_input_volume(context, pa_stream_get_index(stream), &volume, NULL, NULL);
+ if (!o) {
pa_threaded_mainloop_unlock(mainloop);
GENERIC_ERR_MSG(context, "pa_context_set_sink_input_volume() failed");
return CONTROL_ERROR;