[MPlayer-dev-eng] [PATCH] win32 codec path
Joey Parrish
joey at nicewarrior.org
Wed Aug 6 19:58:35 CEST 2003
On Wed, Aug 06, 2003 at 10:54:18AM -0500, Joey Parrish wrote:
> Here is a quick patch that attempts to set the PATH environment variable
> before loading codecs in native win32. This is untested at the moment.
> But via ssh I can see that it compiles, and from MSDN I can see that it
> is logically sound. So I expect it to work. Please test and report
> your results. If this works, then IMHO it is fairly clean and should be
> applied to main.
>
> I apologize for sending untested code, but I don't have enough free time
> right now to install/test binary codecs while I'm away from my computer.
Say, I found the first problem! :)
I was still thinking in terms of the way I've been packaging things. In
cygwin environment, most people will have unix style codec paths, so I
probably shouldn't pass those to the windows environment "as is."
SetEnvironmentVariableA("PATH", WIN32_PATH);
Damn. So, I'm off to find the function to convert posix path to windows
path...
Sorry for the bad patch,
--Joey
More information about the MPlayer-dev-eng
mailing list