allow sinks to be created with max_request initialized to 0, so that the data can be filled in later when attaching to some piggybacked sink

This commit is contained in:
Lennart Poettering 2008-06-21 02:24:23 +02:00
parent d3c1c920f0
commit 37bc240ee9

View file

@ -305,7 +305,6 @@ void pa_sink_put(pa_sink* s) {
/* The following fields must be initialized properly when calling _put() */ /* The following fields must be initialized properly when calling _put() */
pa_assert(s->asyncmsgq); pa_assert(s->asyncmsgq);
pa_assert(s->rtpoll); pa_assert(s->rtpoll);
pa_assert(s->thread_info.max_request > 0);
pa_assert(!s->thread_info.min_latency || !s->thread_info.max_latency || pa_assert(!s->thread_info.min_latency || !s->thread_info.max_latency ||
s->thread_info.min_latency <= s->thread_info.max_latency); s->thread_info.min_latency <= s->thread_info.max_latency);