[vlc-devel] [PATCH 2/2] plugin cache: Windows doesn't like relative pathes in LoadLibraryEx()

Stève Lhomme robux4 at videolabs.io
Thu Oct 20 07:58:30 CEST 2016


Up.

This patch allows debugging on Windows without having to use "make
package-win-common" at each build. It also allows vlc-cache-gen to
work, even though it's not called as it's assumed to cross-compile.

On Fri, Sep 30, 2016 at 9:49 AM, Steve Lhomme <robux4 at videolabs.io> wrote:
> Fixes "vlc-cache-gen ../modules" on Windows and general VLC_PLUGIN_PATH usage.
> ---
>  src/modules/bank.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/modules/bank.c b/src/modules/bank.c
> index 19292e6..3e71c95 100644
> --- a/src/modules/bank.c
> +++ b/src/modules/bank.c
> @@ -336,7 +336,11 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
>      if( paths == NULL )
>          return;
>
> +#ifdef _WIN32
> +    paths = realpath( paths, NULL );
> +#else
>      paths = strdup( paths ); /* don't harm the environment ! :) */
> +#endif
>      if( unlikely(paths == NULL) )
>          return;
>
> --
> 2.8.2
>


More information about the vlc-devel mailing list