Ticket #407 (closed defect: fixed)
pulseaudio --dump-resample-methods, always return 1
| Reported by: | hchen59 | Owned by: | lennart |
|---|---|---|---|
| Milestone: | 0.9.14 | Component: | daemon |
| Keywords: | resample methods | Cc: |
Description
When you run "pulseaudio --dump-resample-methods" to dump available resample methods, return value is always 1.
Peoblem found in pulseaudio-0.9.13
Correction recommended: ====================== In src/daemon/main.c,
case PA_CMD_DUMP_RESAMPLE_METHODS: {
int i;
for (i = 0; i < PA_RESAMPLER_MAX; i++)
if (pa_resample_method_supported(i))
printf("%s\n", pa_resample_method_to_string(i));
goto finish;
}
=> before "goto finnish", one line to be added "retval = 0" to correct this problem.
Misc: ===== I happened to find this problem, when doing automatic test for PulseAudio, by checking return value of PA command-line.
Change History
Note: See
TracTickets for help on using
tickets.
