From: Colin Guthrie Date: Thu, 11 Aug 2011 15:51:52 +0000 (+0200) Subject: sink-input: Drop redundant assert (PA_SINK_INPUT_IS_LINKED() checked already) X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/a8f20e8d95a5cfd77a687543e2eb35a04f471992 sink-input: Drop redundant assert (PA_SINK_INPUT_IS_LINKED() checked already) --- diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index d386b005..384647f2 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -769,10 +769,6 @@ void pa_sink_input_peek(pa_sink_input *i, size_t slength /* in sink frames */, p /* pa_log_debug("peek"); */ - pa_assert(i->thread_info.state == PA_SINK_INPUT_RUNNING || - i->thread_info.state == PA_SINK_INPUT_CORKED || - i->thread_info.state == PA_SINK_INPUT_DRAINED); - block_size_max_sink_input = i->thread_info.resampler ? pa_resampler_max_block_size(i->thread_info.resampler) : pa_frame_align(pa_mempool_block_size_max(i->core->mempool), &i->sample_spec);