char st[256];
assert(s && spec);
+ if (pa_idxset_ncontents(s->inputs) >= PA_MAX_INPUTS_PER_SINK) {
+ fprintf(stderr, __FILE__": Failed to create sink input: too many inputs per sink.\n");
+ return NULL;
+ }
+
if (!pa_sample_spec_equal(spec, &s->sample_spec))
if (!(resampler = pa_resampler_new(spec, &s->sample_spec, s->core->memblock_stat)))
return NULL;