mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
padsp: Fix wrong condition discovered by -Wlogical-not-parentheses warning
warnings emited by gcc 5.1:
utils/padsp.c: In function 'dsp_trigger':
utils/padsp.c:1902:39: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
while (!pa_operation_get_state(o) != PA_OPERATION_DONE) {
^
utils/padsp.c: In function 'dsp_cork':
utils/padsp.c:1937:39: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
while (!pa_operation_get_state(o) != PA_OPERATION_DONE) {
^
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
f81e97ad05
commit
6942e13a36
1 changed files with 2 additions and 2 deletions
|
|
@ -1899,7 +1899,7 @@ static int dsp_trigger(fd_info *i) {
|
|||
}
|
||||
|
||||
i->operation_success = 0;
|
||||
while (!pa_operation_get_state(o) != PA_OPERATION_DONE) {
|
||||
while (pa_operation_get_state(o) != PA_OPERATION_DONE) {
|
||||
PLAYBACK_STREAM_CHECK_DEAD_GOTO(i, fail);
|
||||
|
||||
pa_threaded_mainloop_wait(i->mainloop);
|
||||
|
|
@ -1934,7 +1934,7 @@ static int dsp_cork(fd_info *i, pa_stream *s, int b) {
|
|||
}
|
||||
|
||||
i->operation_success = 0;
|
||||
while (!pa_operation_get_state(o) != PA_OPERATION_DONE) {
|
||||
while (pa_operation_get_state(o) != PA_OPERATION_DONE) {
|
||||
if (s == i->play_stream)
|
||||
PLAYBACK_STREAM_CHECK_DEAD_GOTO(i, fail);
|
||||
else if (s == i->rec_stream)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue