diff --git a/src/pulsecore/protocol-esound.c b/src/pulsecore/protocol-esound.c index 4f83ac480..a0aca9758 100644 --- a/src/pulsecore/protocol-esound.c +++ b/src/pulsecore/protocol-esound.c @@ -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); diff --git a/src/pulsecore/protocol-simple.c b/src/pulsecore/protocol-simple.c index 923ec87b4..5e2d6c8f8 100644 --- a/src/pulsecore/protocol-simple.c +++ b/src/pulsecore/protocol-simple.c @@ -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);