Browse Source

Remove logically dead code in pulse_open (success always 0 in this case). [Coverity]

master
Reece H. Dunn 9 years ago
parent
commit
40a9a3d439
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      src/libespeak-ng/wave_pulse.c

+ 0
- 6
src/libespeak-ng/wave_pulse.c View File

goto unlock_and_fail; goto unlock_and_fail;
} }


success = 0;
while (pa_operation_get_state(o) != PA_OPERATION_DONE) { while (pa_operation_get_state(o) != PA_OPERATION_DONE) {
CHECK_DEAD_GOTO(fail, 1); CHECK_DEAD_GOTO(fail, 1);
pa_threaded_mainloop_wait(mainloop); pa_threaded_mainloop_wait(mainloop);


pa_operation_unref(o); pa_operation_unref(o);


if (!success) {
fprintf(stderr, "pa_context_subscribe() failed: %s", pa_strerror(pa_context_errno(context)));
goto unlock_and_fail;
}

do_trigger = 0; do_trigger = 0;
written = 0; written = 0;
time_offset_msec = 0; time_offset_msec = 0;

Loading…
Cancel
Save