summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2010-12-02 16:34:03 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2010-12-02 16:34:03 +0530
commit8df8cfa0c2f29b5b0ff49bb579c75214cac774fd (patch)
tree206353b5ad42a7c3f7dbc4a515e8cf459de5b464 /src/modules
parent596e1792e0b8af3b600db4b82ad9967815642803 (diff)
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.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/echo-cancel/module-echo-cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index b6c82a5b..611ebb71 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 */