Unregister it before selecting a new output/device. Register it after selecting a new output/device.
mentioned in commit f5c48430