mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
424df7dbb1
commit
d056e71d6c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue