From d056e71d6c65dcb92bdc3f3145a92a1a69f5fa98 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 14 Feb 2002 18:17:14 +0000 Subject: [PATCH] use the XANIM_MOD_DIR env. var as described in xanim's docs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4700 b3059339-0415-0410-9bf9-f77b7e298cf2 --- xacodec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xacodec.c b/xacodec.c index 2eb8118a4e..a4ce745bf3 100644 --- a/xacodec.c +++ b/xacodec.c @@ -260,6 +260,9 @@ int xacodec_init_video(sh_video_t *vidinfo, int out_format) for (i=0; i < XA_CLOSE_FUNCS; i++) xacodec_driver->close_func[i] = NULL; + if (getenv("XANIM_MOD_DIR")) + xacodec_def_path = getenv("XANIM_MOD_DIR"); + snprintf(dll, 1024, "%s/%s", xacodec_def_path, vidinfo->codec->dll); if (xacodec_init(dll, xacodec_driver) == 0) return(0);