summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-08-11 17:51:52 +0200
committerColin Guthrie <colin@mageia.org>2011-08-12 20:31:52 +0200
commita8f20e8d95a5cfd77a687543e2eb35a04f471992 (patch)
treef3ab50f03901cdd7ca9b5339dec22f2a5aca508f
parentc1cb0a6925ce124f38ce3cf151bdcf7e7f7b9f88 (diff)
sink-input: Drop redundant assert (PA_SINK_INPUT_IS_LINKED() checked already)
-rw-r--r--src/pulsecore/sink-input.c4
1 files changed, 0 insertions, 4 deletions
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);