Hi David, On Wed, Aug 24, 2011 at 08:01:00PM +0800, David Henningsson wrote: > Buglink: http://bugs.launchpad.net/bugs/831675 Opening the above link gives me back nothing... ~~~~~ Lost something? There?s no page with this address in Launchpad. Check that you entered the address correctly, or search for it: ~~~~~ > Signed-off-by: David Henningsson <david.henningsson at canonical.com> > --- > src/modules/module-switch-on-connect.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/src/modules/module-switch-on-connect.c b/src/modules/module-switch-on-connect.c > index b121fd9..b1570b1 100644 > --- a/src/modules/module-switch-on-connect.c > +++ b/src/modules/module-switch-on-connect.c > @@ -29,6 +29,7 @@ > #include <pulsecore/core.h> > #include <pulsecore/sink-input.h> > #include <pulsecore/source-output.h> > +#include <pulsecore/source.h> > #include <pulsecore/modargs.h> > #include <pulsecore/log.h> > #include <pulsecore/namereg.h> > @@ -113,6 +114,10 @@ static pa_hook_result_t source_put_hook_callback(pa_core *c, pa_source *source, > if (c->state != PA_CORE_RUNNING) > return PA_HOOK_OK; > > + /* Don't switch to a monitoring source */ > + if (source->monitor_of) > + return PA_HOOK_OK; > + > /* Don't switch to any internal devices */ > if ((s = pa_proplist_gets(source->proplist, PA_PROP_DEVICE_BUS))) { > if (pa_streq(s, "pci")) > -- > 1.7.5.4 > > _______________________________________________ > pulseaudio-discuss mailing list > pulseaudio-discuss at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss -- guanqun