From f93b5e1869cc088acb2aec5a8a69015dc30acbe8 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 2 Dec 2010 16:34:03 +0530 Subject: echo-cancel: Fix source may_move_to function This is required to make sure that the source output between module-echo-cancel and ALSA can't get plugged to the virtual source or monitor of the virtual sink that we expose. This could be triggered by changing the profile of the underlying ALSA device. --- src/modules/echo-cancel/module-echo-cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c index 8ae45a5c..8f37fd25 100644 --- a/src/modules/echo-cancel/module-echo-cancel.c +++ b/src/modules/echo-cancel/module-echo-cancel.c @@ -1212,7 +1212,7 @@ static pa_bool_t source_output_may_move_to_cb(pa_source_output *o, pa_source *de pa_assert_ctl_context(); pa_assert_se(u = o->userdata); - return TRUE; + return (u->source != dest) && (u->sink != dest->monitor_of); } /* Called from main context */ -- cgit