Index: get_path.h =================================================================== --- get_path.h (revision 30880) +++ get_path.h (working copy) @@ -24,4 +24,10 @@ char *get_path(const char *filename); void set_path_env(void); +#ifdef CONFIG_WIN32DLL +extern void SetCodecPath(const char *); // in loader/drv.c + +static char *codec_path=NULL; +#endif + #endif /* MPLAYER_GET_PATH_H */ Index: DOCS/man/en/mplayer.1 =================================================================== --- DOCS/man/en/mplayer.1 (revision 30880) +++ DOCS/man/en/mplayer.1 (working copy) @@ -754,6 +754,10 @@ .RE . .TP +.B \-codecpath +Specify a directory for binary codecs. +. +.TP .B \-profile Use the given profile(s), \-profile help displays a list of the defined profiles. . Index: mplayer.c =================================================================== --- mplayer.c (revision 30880) +++ mplayer.c (working copy) @@ -2701,6 +2701,11 @@ set_priority(); #endif +#ifdef CONFIG_WIN32DLL + if (codec_path) + SetCodecPath(codec_path); +#endif + #ifndef CONFIG_GUI if(use_gui){ mp_msg(MSGT_CPLAYER,MSGL_WARN,MSGTR_NoGui); Index: cfg-common-opts.h =================================================================== --- cfg-common-opts.h (revision 30880) +++ cfg-common-opts.h (working copy) @@ -40,6 +40,9 @@ #ifdef CONFIG_PRIORITY {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL}, #endif +#ifdef CONFIG_WIN32DLL + {"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL}, +#endif {"noconfig", noconfig_opts, CONF_TYPE_SUBCONFIG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL}, // ------------------------- stream options -------------------- Index: mencoder.c =================================================================== --- mencoder.c (revision 30880) +++ mencoder.c (working copy) @@ -534,6 +534,11 @@ set_priority(); #endif +#ifdef CONFIG_WIN32DLL + if (codec_path) + SetCodecPath(codec_path); +#endif + // check font #ifdef CONFIG_FREETYPE init_freetype();