# HG changeset patch # User arpi # Date 1023720764 0 # Node ID e3c74c01a3a23131252d746c87ea36ba07f6fbba # Parent e53ba3e39863ad295db73e37597939f5d4f9e30f use path & dllname from config removed debug printfs diff -r e53ba3e39863 -r e3c74c01a3a2 libmpcodecs/ad_real.c --- a/libmpcodecs/ad_real.c Mon Jun 10 13:59:10 2002 +0000 +++ b/libmpcodecs/ad_real.c Mon Jun 10 14:52:44 2002 +0000 @@ -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)