[MPlayer-cygwin] codec installation problem ?
Gianluigi Tiesi
mplayer at netfarm.it
Wed Apr 25 04:05:40 CEST 2007
On Mon, Apr 23, 2007 at 10:00:09AM -0400, Compn wrote:
> On Mon, 23 Apr 2007 13:47:37 +0100, Robert Parker scribed:
>
> >In the readme of the "windows-essential-20061022.zip" it says all I
> >have to do is place the files in the "C:\Program
> >Files\mplayer\codecs\" folder (I am using the prebuilt windows
> >mplayer).
> >I've also tried putting the essential files in "C:\Program
> >Files\mplayer\codecs\windows-essential-20061022\" folder but get the
> >same result.
>
> put the codecs in c:\program files\mplayer\
> it should work.
>
> it would be nice if mplayer could search a bit more directories for the
> codecs...
>
This patch adds "codecs" directory in mplayer directory to the
search path, the result is more clean since all codecs
will not be in the same dir of mplayer
Bye
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
diff -NubBr -xCVS -xhelp_mp.h -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/get_path.c sherpya/get_path.c
--- main/get_path.c 2005-10-31 10:19:03.749950400 +0100
+++ sherpya/get_path.c 2005-10-31 10:50:21.540080000 +0100
@@ -139,6 +139,11 @@
sprintf(tmppath,"%s;%s",win32path,realpath);
#endif /*USE_REALCODECS*/
#endif /*__CYGWIN__*/
+#if defined(WIN32)
+ strncat(tmppath, ";", sizeof(tmppath));
+ strncat(tmppath, win32path, sizeof(tmppath));
+ strncat(tmppath, "codecs", sizeof(tmppath));
+#endif
mp_msg(MSGT_WIN32, MSGL_V,"Setting PATH to %s\n",tmppath);
if (!SetEnvironmentVariableA("PATH", tmppath))
mp_msg(MSGT_WIN32, MSGL_WARN, "Cannot set PATH!");
More information about the MPlayer-cygwin
mailing list