[vlc-devel] [PATCH]Fixes for mozilla and activex plugins- ticket #2062

Geoffroy Couprie geo.couprie at gmail.com
Wed Oct 29 19:31:55 CET 2008


Hello,

Here are my patches for #2062. The problem was the DLL search path
that didn't include the VLC directory, so the plugins couldn't find
third party libraries (example: access_http didn't find libz). I used
the SetDllDirectory to alter the search path during execution.
Basically, that's like adding the VLC directory to the PATH, but it's
only working for the plugin, only during its execution, and the PATH
remains unchanged.

I need _Win32_WINNT >= 0x502 because SetDllDirectory was introduced
with XP SP1. I had to add winbase.h and the #define before everything
in the mozilla plugin because the mozilla sdk headers define
_WIN32_WINNT to 0x400 (something like NT 4?). This was tested by
replacing the axvlc.dll and npvlc.dll from 9.4 (plugins not working)
by axvlc.dll and npvlc.dll from the 0.9-bugfix with these patches (and
it works).

Please review ;)

Regards,

Geoffroy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0641-Fix-2062-for-activex-plugin.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20081029/7dfd5265/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0642-Fix-2062-for-mozilla-plugin.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20081029/7dfd5265/attachment-0001.ksh>


More information about the vlc-devel mailing list