[MPlayer-dev-eng] [PATCH] win32 codec path

Sascha Sommer saschasommer at freenet.de
Sun Aug 10 20:40:29 CEST 2003

> On Sat, Aug 09, 2003 at 08:11:21PM +0200, Sascha Sommer wrote:
> > What about the attached patch?
> > Like on linux real dlls only get loaded from WIN32_PATH.
> I don't understand... real dlls get loaded from REALCODEC_PATH on
> linux by hardcoding the path into the dll.  What does WIN32_PATH have to

No, it was changed to only load the linux libs from REALCODEC_PATH

> do with it?  Besides, to be portable, we have to consider the case where
> real dlls and qt/win32 dlls are not stored in the same place.  What if I
> encode a video with some qt video and sipr audio?  I would have to put
> both in the path, or I would have to set the path before each
> LoadLibrary call.  Of course, none of us would ever create such a video,
> but I don't want to introduce code that has the potential to work now
> and not work later.
> Would it be best to set the path to include all the various codec paths
> at the beginning of mplayer execution, or create a RegisterCodecPath()
> function to be called by each decoder as needed?

I think the best thing would be to combine the two paths. Afair you can do
this with ";"
Then I would set this path once at the beginning of mplayer execution. Imho
a RegisterCodecPath()
is to much overhead.


More information about the MPlayer-dev-eng mailing list