summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-21 02:24:59 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-21 02:24:59 +0200
commit947d8b4c098beb13cf4822e49c5c6b41a4856135 (patch)
treedfa1daa576a52756c9d89a42511b336946694cc6 /src/pulsecore
parent37bc240ee93fe82ef2c6f0407ab0c8de6fbd0794 (diff)
execute detach callback before we change the state to UNLINKED
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 77a0c562..edb023b2 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;