Re: codec installation problem ?

Gianluigi Tiesi <[email protected]>
Newsgroups gmane.comp.video.mplayer.cygwin
Message-ID <[email protected]>
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 <[email protected]>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

_______________________________________________
MPlayer-cygwin mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygwin
02_codecs_addpath.diff (text/plain, 744 B)
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!");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.