johnhoran / Laine

Gnome extension which allows the control of the volume of individual applications as well as a more in depth control of mpris aware applications from a single applet
https://extensions.gnome.org/extension/937/laine/
GNU General Public License v2.0
27 stars 11 forks source link

Removal of selected USB device breaks extension until restart #19

Closed johnhoran closed 8 years ago

johnhoran commented 9 years ago

I actually strongly suspect that this is a bug in the Pulseaudio DBus interface, as I can trigger it there without having the extension loaded. But if you have a USB sound card selected and then physically remove it, pulseaudio then cannot set, or advertise any fallback sink changes through its DBus interface.

Manually removing the dbus module and reloading it also fixes this error.

The aim of this report is mostly to say that I'm aware and looking into this issue.

eduardohki commented 8 years ago

Hi,

Here is the same for me. I'm running Fedora 23.

johnhoran commented 8 years ago

Finally found some time to mess around with this again. And yes it was caused by a bug in the DBus interface. I've submitted a patch to pulseaudio, so if it is accepted, then that should fix it. [PATCH] module-dbus: fix for module incorrectly believing no sinks or sources are available on device disconnection.