Index: mplayer.c =================================================================== --- mplayer.c (revision 30880) +++ mplayer.c (working copy) @@ -103,6 +103,12 @@ #include "osdep/priority.h" +#ifdef CONFIG_WIN32DLL +extern void SetCodecPath(const char *); // in loader/drv.c + +char *codec_path=NULL; +#endif + char *heartbeat_cmd; #define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5)) @@ -2701,6 +2707,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) @@ -155,6 +155,12 @@ #include "osdep/priority.h" +#ifdef CONFIG_WIN32DLL +extern void SetCodecPath(const char *); // in loader/drv.c + +char *codec_path=NULL; +#endif + // A-V sync: int delay_corrected=1; static float default_max_pts_correction=-1;//0.01f; @@ -534,6 +540,11 @@ set_priority(); #endif +#ifdef CONFIG_WIN32DLL + if (codec_path) + SetCodecPath(codec_path); +#endif + // check font #ifdef CONFIG_FREETYPE init_freetype();