Commit d1aa5d15 authored by Rafaël Carré's avatar Rafaël Carré

Windows Store App: fix plugins loading

parent 46cd3b97
...@@ -317,6 +317,10 @@ static void AllocateAllPlugins (vlc_object_t *p_this) ...@@ -317,6 +317,10 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
else else
mode = CACHE_USE; mode = CACHE_USE;
#ifdef WINAPI_FAMILY_APP
/* Windows Store Apps can not load external plugins with absolute paths. */
AllocatePluginPath (p_this, "plugins", mode);
#else
/* Contruct the special search path for system that have a relocatable /* Contruct the special search path for system that have a relocatable
* executable. Set it to <vlc path>/plugins. */ * executable. Set it to <vlc path>/plugins. */
char *vlcpath = config_GetLibDir (); char *vlcpath = config_GetLibDir ();
...@@ -327,6 +331,7 @@ static void AllocateAllPlugins (vlc_object_t *p_this) ...@@ -327,6 +331,7 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
free( paths ); free( paths );
} }
free (vlcpath); free (vlcpath);
#endif /* WINAPI_FAMILY_APP */
/* If the user provided a plugin path, we add it to the list */ /* If the user provided a plugin path, we add it to the list */
paths = getenv( "VLC_PLUGIN_PATH" ); paths = getenv( "VLC_PLUGIN_PATH" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment