summaryrefslogtreecommitdiffstats
path: root/get_path.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-14 16:13:32 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-14 16:13:32 +0000
commitaee9749bca8e418752627bbfe8859029ea43d28e (patch)
treebf7cbdf45ee3c34a6db18434e4ad597147306b44 /get_path.c
parent13d16eb051b31e046c9943cf38c6e9f484b0af8e (diff)
downloadmpv-aee9749bca8e418752627bbfe8859029ea43d28e.tar.bz2
mpv-aee9749bca8e418752627bbfe8859029ea43d28e.tar.xz
Replace separate Win32, XAnim and Real codec directories by one global dir.
Nowadays MPlayer does not use the codecs from other installed programs. A runtime setting will soon take over the rare case that binary codecs should be searched for in non-standard directories. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30888 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'get_path.c')
-rw-r--r--get_path.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/get_path.c b/get_path.c
index d1822b909d..0412dbaa8d 100644
--- a/get_path.c
+++ b/get_path.c
@@ -161,31 +161,17 @@ void set_path_env(void)
/*make our codec dirs available for LoadLibraryA()*/
char tmppath[MAX_PATH*2 + 1];
char win32path[MAX_PATH];
- char realpath[MAX_PATH];
#ifdef __CYGWIN__
- cygwin_conv_to_full_win32_path(WIN32_PATH,win32path);
+ cygwin_conv_to_full_win32_path(BINARY_CODECS_PATH, win32path);
strcpy(tmppath,win32path);
-#ifdef CONFIG_REALCODECS
- cygwin_conv_to_full_win32_path(REALCODEC_PATH,realpath);
- sprintf(tmppath,"%s;%s",win32path,realpath);
-#endif /*CONFIG_REALCODECS*/
#else /*__CYGWIN__*/
/* Expand to absolute path unless it's already absolute */
- if (!strstr(WIN32_PATH,":") && WIN32_PATH[0] != '\\'){
+ if (!strstr(BINARY_CODECS_PATH,":") && BINARY_CODECS_PATH[0] != '\\') {
GetModuleFileNameA(NULL, win32path, MAX_PATH);
- strcpy(strrchr(win32path, '\\') + 1, WIN32_PATH);
+ strcpy(strrchr(win32path, '\\') + 1, BINARY_CODECS_PATH);
}
- else strcpy(win32path,WIN32_PATH);
+ else strcpy(win32path, BINARY_CODECS_PATH);
strcpy(tmppath,win32path);
-#ifdef CONFIG_REALCODECS
- /* Expand to absolute path unless it's already absolute */
- if (!strstr(REALCODEC_PATH,":") && REALCODEC_PATH[0] != '\\'){
- GetModuleFileNameA(NULL, realpath, MAX_PATH);
- strcpy(strrchr(realpath, '\\') + 1, REALCODEC_PATH);
- }
- else strcpy(realpath,REALCODEC_PATH);
- sprintf(tmppath,"%s;%s",win32path,realpath);
-#endif /*CONFIG_REALCODECS*/
#endif /*__CYGWIN__*/
mp_msg(MSGT_WIN32, MSGL_V,"Setting PATH to %s\n",tmppath);
if (!SetEnvironmentVariableA("PATH", tmppath))