2.0 regression: audio-device variable type mismatch
ALSA uses audio-device as a string, the other outputs as integer. THis can cause a crash (see https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/972615) switching from ALSA to PulseAudio for instance.
Also different outputs do not interpet the integer value in the same way. This can cause inconsistent behaviour or failures.
Basically, the audio-device variable must not survive when the audio output is destroyed.