/* Called from I/O thread context */ static void sink_input_detach_cb(pa_sink_input *i) { struct userdata *u; pa_sink_input_assert_ref(i); pa_assert_se(u = i->userdata); pa_sink_detach_within_thread(u->sink); pa_sink_set_rtpoll(u->sink, NULL); }
/* Called from I/O thread context */ static void sink_input_detach_cb(pa_sink_input *i) { struct userdata *u; pa_sink_input_assert_ref(i); pa_assert_se(u = i->userdata); if (PA_SINK_IS_LINKED(u->sink->thread_info.state)) pa_sink_detach_within_thread(u->sink); pa_sink_set_rtpoll(u->sink, NULL); }