summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/module-loopback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index 0d65682c6..1a69445f9 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -152,11 +152,13 @@ static void teardown(struct userdata *u) {
pa_source_output_unlink(u->source_output);
if (u->sink_input) {
+ u->sink_input->parent.process_msg = pa_sink_input_process_msg;
pa_sink_input_unref(u->sink_input);
u->sink_input = NULL;
}
if (u->source_output) {
+ u->source_output->parent.process_msg = pa_source_output_process_msg;
pa_source_output_unref(u->source_output);
u->source_output = NULL;
}