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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1367693 Title: Can't select bluetooth input while on a2dp profile To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/1367693/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs