[MPlayer-dev-eng] realvideo 8 and realaudio 8 are working but ....
Nilmoni Deb
ndeb at ece.cmu.edu
Tue Jun 11 05:06:17 CEST 2002
Felix,
Thanks for ur hints. Here r the patches. They worked for me.
Hopefully, they will work for all.
thanks
- Nil
-------------- next part --------------
--- /home/ndeb/configure Mon Jun 10 16:19:46 2002
+++ ./configure Mon Jun 10 22:15:41 2002
@@ -233,6 +233,8 @@
--with-libdvdnav=DIR libdvdnav in DIR
--with-win32libdir=DIR W*ndows DLL files in DIR
--with-xanimlibdir=DIR XAnim DLL files in DIR
+ --with-realplayer8libdir=DIR
+ RealPlayer8 DLL files in DIR
--with-xvidcore=PATH path to XviD libcore.a (e.g: /opt/lib/libcore.a)
--with-sdl-config=PATH path to sdl*-config (e.g.: /opt/bin/sdl-config)
--with-gtk-config=PATH path to gtk*-config (e.g.: /opt/bin/gtk-config)
@@ -1079,6 +1081,10 @@
_xanimlibdir=`echo $ac_option | cut -d '=' -f 2`
_xanim=yes
;;
+ --with-realplayer8libdir=*)
+ _realplayer8libdir=`echo $ac_option | cut -d '=' -f 2`
+ _real=yes
+ ;;
--with-csslibdir=*)
_csslibdir=`echo $ac_option | cut -d '=' -f 2`
_css=yes
@@ -3226,13 +3232,27 @@
if test "$_dl" = yes ; then
if linux ; then
_real=yes
- echores "yes"
elif freebsd ; then
_real=yes
- echores "yes"
else
echores "no (tested only on Linux and FreeBSD arch)"
fi
+ if test "_real=yes" ; then
+ if test -z "$_realplayer8libdir" ; then
+ for I in /usr/lib/RealPlayer8/Codecs /usr/lib/real ; do
+ if test -d "$I" ; then
+ _realplayer8libdir="$I"
+ break;
+ fi;
+ done
+ fi
+ fi
+ test "$_realplayer8libdir" && _real=yes
+ if test "$_real" = yes ; then
+ echores "yes (using $_realplayer8libdir)"
+ else
+ echores "no (no suitable directory found - see DOCS/codecs.html)"
+ fi
else
echores "no (dynamic loader support needed)"
fi
@@ -3241,9 +3261,11 @@
fi
if test "$_real" = yes ; then
_def_real='#define USE_REALCODECS 1'
+ _def_real_path="#define REALCODEC_PATH \"$_realplayer8libdir\""
_codecmodules="real $_codecmodules"
else
_def_real='#undef USE_REALCODECS'
+ _def_real_path="#undef REALCODEC_PATH"
_nocodecmodules="real $_nocodecmodules"
fi
@@ -4184,6 +4206,8 @@
/* RealPlayer DLL support */
$_def_real
+/* Default search path */
+$_def_real_path
/* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/
$_def_fastmemcpy
-------------- next part --------------
--- /home/ndeb/vd_real.c Mon Jun 10 23:00:16 2002
+++ libmpcodecs/vd_real.c Mon Jun 10 22:48:51 2002
@@ -147,11 +147,11 @@
mp_msg(MSGT_DECVIDEO,MSGL_V,"realvideo codec id: 0x%08X sub-id: 0x%08X\n",extrahdr[1],extrahdr[0]);
- sprintf(path, LIBDIR "/real/%s", sh->codec->dll);
+ sprintf(path, REALCODEC_PATH "/%s", sh->codec->dll);
if(!load_syms(path)){
mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_MissingDLLcodec,sh->codec->dll);
mp_msg(MSGT_DECVIDEO,MSGL_HINT,"You need to copy the contents of the codecs directory from RealPlayer8\n");
- mp_msg(MSGT_DECVIDEO,MSGL_HINT,"into " LIBDIR "/real/ !\n");
+ mp_msg(MSGT_DECVIDEO,MSGL_HINT,"into " REALCODEC_PATH "/ !\n");
return 0;
}
// only I420 supported
-------------- next part --------------
--- /home/ndeb/ad_real.c Mon Jun 10 22:59:57 2002
+++ libmpcodecs/ad_real.c Mon Jun 10 22:48:20 2002
@@ -64,7 +64,7 @@
int len;
void* prop;
char path[4096];
- sprintf(path, LIBDIR "/real/%s", sh->codec->dll);
+ sprintf(path, REALCODEC_PATH "/%s", sh->codec->dll);
handle = dlopen (path, RTLD_LAZY);
if(!handle){
mp_msg(MSGT_DECAUDIO,MSGL_WARN,"Cannot open dll: %s\n",dlerror());
More information about the MPlayer-dev-eng
mailing list