Mercurial > mplayer.hg
changeset 4699:406d7fc6be4e
use the XANIM_MOD_DIR env. var as described in xanim's docs
author | alex |
---|---|
date | Thu, 14 Feb 2002 18:17:14 +0000 |
parents | 319d80378895 |
children | 30131db5dfbb |
files | xacodec.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/xacodec.c Thu Feb 14 16:38:50 2002 +0000 +++ b/xacodec.c Thu Feb 14 18:17:14 2002 +0000 @@ -260,6 +260,9 @@ 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);