mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
core: Fix gcc-7 -Wimplicit-fallthrough= warnings by rearranging comment
'Fall through.' must appear separately Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
78f964d605
commit
cbc4424821
2 changed files with 4 additions and 6 deletions
|
|
@ -1354,11 +1354,10 @@ static int sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int
|
|||
case PA_SINK_INPUT_MESSAGE_GET_LATENCY: {
|
||||
pa_usec_t *r = userdata;
|
||||
|
||||
/* The default handler will add in the extra latency added by the resampler. */
|
||||
*r = pa_bytes_to_usec(pa_memblockq_get_length(c->input_memblockq), &c->sink_input->sample_spec);
|
||||
|
||||
/* Fall through, the default handler will add in the extra
|
||||
* latency added by the resampler */
|
||||
}
|
||||
/* Fall through. */
|
||||
|
||||
default:
|
||||
return pa_sink_input_process_msg(o, code, userdata, offset, chunk);
|
||||
|
|
|
|||
|
|
@ -336,11 +336,10 @@ static int sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int
|
|||
case PA_SINK_INPUT_MESSAGE_GET_LATENCY: {
|
||||
pa_usec_t *r = userdata;
|
||||
|
||||
/* The default handler will add in the extra latency added by the resampler.*/
|
||||
*r = pa_bytes_to_usec(pa_memblockq_get_length(c->input_memblockq), &c->sink_input->sample_spec);
|
||||
|
||||
/* Fall through, the default handler will add in the extra
|
||||
* latency added by the resampler */
|
||||
}
|
||||
/* Fall through. */
|
||||
|
||||
default:
|
||||
return pa_sink_input_process_msg(o, code, userdata, offset, chunk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue