[MPlayer-dev-eng] [PATCH] ad_real.c

Andreas Hess jaska at gmx.net
Tue Aug 27 17:05:55 CEST 2002


Hi,

this small patch removes the check for the unused symbol "SetDLLAccessPath",
so that newer (?) versions off the RealAudio libraries (i. e. from
<http://www.realnetworks.com/products/producer/basic.html>) which don't
export this symbol, work properly with mplayer.


Andreas
-------------- next part --------------
Index: libmpcodecs/ad_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_real.c,v
retrieving revision 1.11
diff -u -r1.11 ad_real.c
--- libmpcodecs/ad_real.c       25 Aug 2002 01:12:41 -0000      1.11
+++ libmpcodecs/ad_real.c       27 Aug 2002 14:47:15 -0000
@@ -42,7 +42,7 @@
 static unsigned long (*raInitDecoder)(unsigned long,unsigned long);
 static unsigned long (*raOpenCodec2)(unsigned long);
 static unsigned long (*raSetFlavor)(unsigned long,unsigned long);
-static void  (*raSetDLLAccessPath)(unsigned long);
+//static void  (*raSetDLLAccessPath)(unsigned long);
 static void  (*raSetPwd)(char*,char*);

 typedef struct {
@@ -78,12 +78,13 @@
     raOpenCodec2 = dlsym(handle, "RAOpenCodec2");
     raInitDecoder = dlsym(handle, "RAInitDecoder");
     raSetFlavor = dlsym(handle, "RASetFlavor");
-    raSetDLLAccessPath = dlsym(handle, "SetDLLAccessPath");
+//    raSetDLLAccessPath = dlsym(handle, "SetDLLAccessPath");
     raSetPwd = dlsym(handle, "RASetPwd"); // optional, used by SIPR

   if(!raCloseCodec || !raDecode || !raFlush || !raFreeDecoder ||
      !raGetFlavorProperty || !raOpenCodec2 || !raSetFlavor ||
-     !raSetDLLAccessPath || !raInitDecoder){
+//     !raSetDLLAccessPath ||
+     !raInitDecoder){
       mp_msg(MSGT_DECAUDIO,MSGL_WARN,"Cannot resolve symbols - incompatible dll\n");
       return 0;
   }


More information about the MPlayer-dev-eng mailing list