[MPlayer-users] ALSA lib control.c:654:(snd_ctl_open_noupdate) Invalid CTL
Simon Deschenes
simondeschenes at hotmail.com
Sat May 29 16:56:03 CEST 2004
The problem is in ao_alsa.c (or ao_alsa1x.c for pre4)
The alsa output tries to open a NULL device which is not found
and the error is :
ALSA lib control.c:654:(snd_ctl_open_noupdate) Invalid CTL
here is the buggy code :
if(mix_name == NULL){
if(mixer_device) {
card = strdup(mixer_device);
mix_name = strchr(card, '/');
if(mix_name) {
*mix_name++ = 0;
} else {
mix_name = "PCM";
}
} else {
mix_name = "PCM";
card = "default";
}
}
I deleted this crap and replaced with this (now everythings work) :
card = "default";
mix_name = "PCM"; //you can change it to "Master" if you like
The problem is reproduced everytime I play a video with output ALSA
There is no problem with oss emulation.
My machine is
Athlon XP 2100 + / 768 DDR 2700 / SB Audigy Rev 3 / Kernel 2.6.6-mm5 / Alsa
1.04
the problem affects CVS and pre4
Greetings, Simon Deschenes
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !
http://fr.ca.search.msn.com/
More information about the MPlayer-users
mailing list