[vlc-commits] commit: Get rid of PLUGIN_PATH ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Mar 4 18:53:42 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar  4 19:51:29 2010 +0200| [acd7c21d72119e2400ca6a38e0530d0b5553ddfd] | committer: Rémi Denis-Courmont 

Get rid of PLUGIN_PATH

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

 src/Makefile.am       |    3 +--
 src/modules/modules.c |    6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index ee4eac8..b8d8b41 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -188,8 +188,7 @@ libvlccore_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlccore` \
 	-DLOCALEDIR=\"$(localedir)\" \
 	-DSYSCONFDIR=\"$(sysconfdir)\" \
 	-DDATA_PATH=\"$(vlcdatadir)\" \
-	-DPKGLIBDIR=\"$(vlclibdir)\" \
-	-DPLUGIN_PATH=PKGLIBDIR\"/plugins\"
+	-DPKGLIBDIR=\"$(vlclibdir)\"
 libvlccore_la_LDFLAGS = `$(VLC_CONFIG) --ldflags libvlccore` $(AM_LDFLAGS) \
 	-no-undefined \
 	-export-symbols $(srcdir)/libvlccore.sym \
diff --git a/src/modules/modules.c b/src/modules/modules.c
index c1de228..1e4a4df 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -820,12 +820,10 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
 
     /* Contruct the special search path for system that have a relocatable
      * executable. Set it to <vlc path>/plugins. */
+    assert( vlcpath );
 
-    if( vlcpath && asprintf( &path, "%s" DIR_SEP "plugins", vlcpath ) != -1 )
+    if( asprintf( &path, "%s" DIR_SEP "plugins", vlcpath ) != -1 )
         vlc_array_append( arraypaths, path );
-#if !defined(WIN32) && !defined(__APPLE__)
-    vlc_array_append( arraypaths, strdup( PLUGIN_PATH ) );
-#endif
 
     /* If the user provided a plugin path, we add it to the list */
     char *userpaths = var_InheritString( p_this, "plugin-path" );



More information about the vlc-commits mailing list