pa_log_info(__FILE__": created %u \"%s\" on %u with sample spec \"%s\"", i->index, i->name, s->index, st);
pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_NEW, i->index);
- pa_sink_notify(i->sink);
+ /* We do not call pa_sink_notify() here, because the virtual
+ * functions have not yet been initialized */
+
return i;
}
assert(i->ref >= 1);
if (!i->resampler)
- return PA_RESAMPLER_INVALID;
+ return i->resample_method;
return pa_resampler_get_method(i->resampler);
}
}
/* Okey, let's move it */
- pa_idxset_remove_by_data(i->sink->inputs, i, NULL);
+ pa_idxset_remove_by_data(origin->inputs, i, NULL);
+ pa_idxset_put(dest->inputs, i, NULL);
i->sink = dest;
- pa_idxset_put(i->sink->inputs, i, NULL);
/* Replace resampler */
if (new_resampler != i->resampler) {