mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
core: Fix typo and gcc-7 -Wimplicit-fallthrough= warnings
Correct spelling of 'through' in a comment helps to fix a warning :) also drop some unrelated comments Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
6f065f9589
commit
78f964d605
1 changed files with 5 additions and 5 deletions
|
|
@ -273,20 +273,20 @@ static pa_sample_format_t choose_work_format(
|
|||
switch (method) {
|
||||
/* This block is for resampling functions that only
|
||||
* support the S16 sample format. */
|
||||
case PA_RESAMPLER_SPEEX_FIXED_BASE: /* fall through */
|
||||
case PA_RESAMPLER_SPEEX_FIXED_BASE:
|
||||
case PA_RESAMPLER_FFMPEG:
|
||||
work_format = PA_SAMPLE_S16NE;
|
||||
break;
|
||||
|
||||
/* This block is for resampling functions that support
|
||||
* any sample format. */
|
||||
case PA_RESAMPLER_COPY: /* fall through */
|
||||
case PA_RESAMPLER_COPY:
|
||||
case PA_RESAMPLER_TRIVIAL:
|
||||
if (!map_required && a == b) {
|
||||
work_format = a;
|
||||
break;
|
||||
}
|
||||
/* Else fall trough */
|
||||
/* Else fall through */
|
||||
case PA_RESAMPLER_PEAKS:
|
||||
/* PEAKS, COPY and TRIVIAL do not benefit from increased
|
||||
* working precision, so for better performance use s16ne
|
||||
|
|
@ -295,7 +295,7 @@ static pa_sample_format_t choose_work_format(
|
|||
work_format = PA_SAMPLE_S16NE;
|
||||
break;
|
||||
}
|
||||
/* Else fall trough */
|
||||
/* Else fall through */
|
||||
case PA_RESAMPLER_SOXR_MQ:
|
||||
case PA_RESAMPLER_SOXR_HQ:
|
||||
case PA_RESAMPLER_SOXR_VHQ:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue