changeset 6376:e3c74c01a3a2

use path & dllname from config removed debug printfs
author arpi
date Mon, 10 Jun 2002 14:52:44 +0000
parents e53ba3e39863
children 203128bcc6be
files libmpcodecs/ad_real.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)