]> git.sesse.net Git - vlc/commitdiff
Windows Store App: fix plugins loading
authorRafaël Carré <funman@videolan.org>
Mon, 25 Mar 2013 14:30:54 +0000 (15:30 +0100)
committerRafaël Carré <funman@videolan.org>
Mon, 25 Mar 2013 14:30:54 +0000 (15:30 +0100)
src/modules/bank.c

index cb2225da7b2c7765621753ca2069467ccd2ff675..7b05b8d1bacb38562960e335e122cbd94e462dad 100644 (file)
@@ -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" );