Update of /cvsroot/mplayer/main/libmpcodecs In directory mail:/var/tmp.root/cvs-serv12799 Modified Files: ad_real.c Log Message: use path & dllname from config removed debug printfs Index: ad_real.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_real.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ad_real.c 10 Jun 2002 13:55:18 -0000 1.4 +++ ad_real.c 10 Jun 2002 14:52:44 -0000 1.5 @@ -58,7 +58,9 @@ // let's check if the driver is available, return 0 if not. // (you should do that if you use external lib(s) which is optional) unsigned int result; - handle = dlopen ("/usr/local/RealPlayer8/Codecs/cook.so.6.0", RTLD_LAZY); + char path[4096]; + sprintf(path, LIBDIR "/real/%s", sh->codec->dll); + handle = dlopen (path, RTLD_LAZY); if(!handle){ mp_msg(MSGT_DECAUDIO,MSGL_WARN,"Cannot open dll: %s\n",dlerror()); return 0; @@ -148,7 +150,7 @@ int w=sh->wf->nBlockAlign/sps; // 5 int h=((short*)(sh->wf+1))[1]; - printf("bs=%d sps=%d w=%d h=%d \n",sh->wf->nBlockAlign,sps,w,h); +// printf("bs=%d sps=%d w=%d h=%d \n",sh->wf->nBlockAlign,sps,w,h); #if 1 if(sh->a_in_buffer_len<=0){ @@ -175,7 +177,7 @@ buf, &len, -1); sh->a_in_buffer_len-=sh->wf->nBlockAlign; - printf("radecode: %d bytes, res=0x%X \n",len,result); +// printf("radecode: %d bytes, res=0x%X \n",len,result); return len; // return value: number of _bytes_ written to output buffer, // or -1 for EOF (or uncorrectable error)
participants (1)
-
Arpi of Ize