From: RĂ©mi Denis-Courmont Date: Thu, 4 Mar 2010 17:51:29 +0000 (+0200) Subject: Get rid of PLUGIN_PATH X-Git-Tag: 1.1.0-pre1~520 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=acd7c21d72119e2400ca6a38e0530d0b5553ddfd;p=vlc Get rid of PLUGIN_PATH --- diff --git a/src/Makefile.am b/src/Makefile.am index ee4eac8fef..b8d8b41cf7 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 c1de228bb8..1e4a4dfaa7 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 /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" );