[MPlayer-dev-eng] Bug: ao jack in libao2/ao_jack.c

freacky22527 at free.fr freacky22527 at free.fr
Sun Oct 15 16:57:37 CEST 2006



With my version of jackd (0.100.0), mplayer always return the same error:
"[JACK] cannot open server" but jackd il lauched and works perfectly with
alsaplayer.
So i made a patch to fix it :)
cat ao_jack.diff:

241c241,242
<   if ((client = jack_client_new (client_name)) == 0) {
---
>   client = jack_client_new(client_name);
>   if (!client) {

patch ao_jack.c ao_jack.diff
compile and it runs ;)

PS: link with (-ljack added):

cc -I../libvo -I../../libvo  -fno-PIC -O4 -march=pentium3 -mtune=pentium3 -pipe
-ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I.      -I/usr/include/freetype2  -I/usr/include/SDL
-D_REENTRANT    -I./libavutil -I./libavcodec   -o mplayer mplayer.o
m_property.o mp_msg.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o
m_config.o m_option.o m_struct.o parser-cfg.o playtree.o playtreeparser.o
spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o mixer.o parser-mpcmd.o
subopt-helper.o libvo/libvo.a libao2/libao2.a input/libinput.a 
vidix/libvidix.a  libmpcodecs/libmpcodecs.a loader/libloader.a
loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a libaf/libaf.a
libmpdemux/libmpdemux.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2
-lmpdvdkit libavcodec/libavcodec.a  libavformat/libavformat.a 
libavutil/libavutil.a  libpostproc/libpostproc.a          -lpng -lz -lz -ljpeg
-lasound -ldl -lpthread      -lfreetype -lz -lncurses  -lnsl       -lfontconfig
  libfaad2/libfaad2.a  mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a
tremor/libvorbisidec.a  -laa -lGL -ldl  -lXv   -lXinerama -L/usr/X11R6/lib
-lXext -lX11 -lnsl -lpthread -lnsl -L/usr/lib -lSDL -lpthread        
-L/usr/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
-L/usr/lib -lesd -laudiofile -lm  -lopenal -laudio -lXt -L/usr/X11R6/lib -lXext
-lX11 -lnsl -lpthread    -Wl,-z,noexecstack     -lpthread -ldl -rdynamic  -lm
-ljack

++



More information about the MPlayer-dev-eng mailing list