[vlc-commits] Windows Store App: fix plugins loading

Rafaël Carré git at videolan.org
Mon Mar 25 15:31:12 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Mar 25 15:30:54 2013 +0100| [d1aa5d15684801e07724daffaba8304b3c25814a] | committer: Rafaël Carré

Windows Store App: fix plugins loading

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1aa5d15684801e07724daffaba8304b3c25814a
---

 src/modules/bank.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index cb2225d..7b05b8d 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -317,6 +317,10 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
     else
         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
      * executable. Set it to <vlc path>/plugins. */
     char *vlcpath = config_GetLibDir ();
@@ -327,6 +331,7 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
         free( paths );
     }
     free (vlcpath);
+#endif /* WINAPI_FAMILY_APP */
 
     /* If the user provided a plugin path, we add it to the list */
     paths = getenv( "VLC_PLUGIN_PATH" );



More information about the vlc-commits mailing list