From: Lennart Poettering Date: Sat, 21 Jun 2008 00:24:59 +0000 (+0200) Subject: execute detach callback before we change the state to UNLINKED X-Git-Tag: 1.0_branch~2772 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=947d8b4c098beb13cf4822e49c5c6b41a4856135;p=profile%2Fivi%2Fpulseaudio.git execute detach callback before we change the state to UNLINKED --- diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 77a0c56..edb023b 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -1038,11 +1038,11 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse * sink input handling a few lines down at * PA_SINK_MESSAGE_PREPAPRE_MOVE, too. */ - pa_sink_input_set_state_within_thread(i, i->state); - if (i->detach) i->detach(i); + pa_sink_input_set_state_within_thread(i, i->state); + pa_assert(i->thread_info.attached); i->thread_info.attached = FALSE;