diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-21 02:24:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-21 02:24:59 +0200 |
commit | 947d8b4c098beb13cf4822e49c5c6b41a4856135 (patch) | |
tree | dfa1daa576a52756c9d89a42511b336946694cc6 | |
parent | 37bc240ee93fe82ef2c6f0407ab0c8de6fbd0794 (diff) |
execute detach callback before we change the state to UNLINKED
-rw-r--r-- | src/pulsecore/sink.c | 4 |
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; |