mixer crashes panel

Danny danny.milo at gmx.net
Thu May 8 19:11:35 CEST 2003


Am Don, 2003-05-08 um 14.01 schrieb Jasper Huijsmans:
> Hey Danny,
> 
> The mixer crashes the panel when the user has no access rights to the
> audio system:
ooooops !

> xfce4-panel: hcontrol.c: 120: snd_hctl_close: Assertion `hctl' failed.
> alsa: Mixer attach default error: Permission denied
hmmmmmmm
I did like:
if not worked(handle = snd_mixer_open(BLAAAH)) return;
if not worked(snd_mixer_attach(handle, card)) { 
  printf(msg like you gave); 
  snd_mixer_close(handle);
  return;
}

but alsa assert()s on the non-opened card handle within
snd_mixer_close... as if it was bad that it isnt opened... 

Sounds like an alsa bug :(

I'll workaround by removing the snd_mixer_close call on snd_mixer_attach
error... still weird though O_O

> 	Jasper

Danny





More information about the Xfce4-dev mailing list