diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 98f117cfe..886d74423 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -216,11 +216,11 @@ void pa_sink_unlink(pa_sink* s) { j = i; } + sink_set_state(s, PA_SINK_UNLINKED); + if (s->monitor_source) pa_source_unlink(s->monitor_source); - sink_set_state(s, PA_SINK_UNLINKED); - s->get_latency = NULL; s->get_volume = NULL; s->set_volume = NULL;