Ok, and the second finding. If a stream is currently creating, pa_stream_disconnect fails, and the stream continues to set itself up and starts to produce samples. So when the sound applet starts up, this seems to happen due to some race condition because active_input_update is called twice.
There are more than one way to solve this problem, and maybe I should do both workarounds: 1) If pa_stream_disconnect fails, make sure that we retry the disconnection later. 2) If active_input_update is called twice for the same object, there is no need to tear down the stream and then set it up again. This is what seems to happen at startup. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to unity-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1367693 Title: Can't select bluetooth input while on a2dp profile Status in OEM Priority Project: Triaged Status in “unity-control-center” package in Ubuntu: Triaged Bug description: Steps to reproduce: 1. On a normal laptop, connect a bluetooth headset with both a2dp and hsp capabilities 2. Go to output tab, select headset and set to a2dp profile 3. Go to input tab and select headset. Now, the headset appears selected, but in fact it is not and instead the settings for "internal mic" is shown on the right hand side (see screenshot). ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: unity-control-center 14.04.3+14.04.20140604-0ubuntu1 ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6 Uname: Linux 3.13.0-35-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.3 Architecture: amd64 CurrentDesktop: Unity Date: Wed Sep 10 12:49:51 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2014-03-07 (186 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140307) SourcePackage: unity-control-center UpgradeStatus: No upgrade log present (probably fresh install) usr_lib_unity-control-center: activity-log-manager 0.9.7-0ubuntu14 deja-dup 30.0-0ubuntu4 To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/1367693/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

