Ticket #407 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by lennart

  • milestone set to 0.9.14

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

Fixed in re4aa5f2.

Note: See TracTickets for help on using tickets.