diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-10 14:52:44 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-10 14:52:44 +0000 |
commit | 68cf96568f8e268b09a3e6adae421adfa16af289 (patch) | |
tree | bec6a421b9db886a080663dd578d28b0eecc9a5b /libmpcodecs | |
parent | c5de17107d97c1f98b90d2cccb1bc4d255106fe2 (diff) | |
download | mpv-68cf96568f8e268b09a3e6adae421adfa16af289.tar.bz2 mpv-68cf96568f8e268b09a3e6adae421adfa16af289.tar.xz |
use path & dllname from config
removed debug printfs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6377 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ad_real.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libmpcodecs/ad_real.c b/libmpcodecs/ad_real.c index 437cbf703f..7c7f84584a 100644 --- a/libmpcodecs/ad_real.c +++ b/libmpcodecs/ad_real.c @@ -58,7 +58,9 @@ static int preinit(sh_audio_t *sh){ // 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 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen) 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 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen) 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) |