* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.29 2002/08/20 18:08:51 sam Exp $
+ * $Id: libvlc.c,v 1.30 2002/08/21 09:26:53 xav Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
# include <io.h>
#endif
+#ifdef WIN32 /* optind, getopt(), included in unistd.h */
+# include "GNUgetopt/getopt.h"
+#endif
+
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: modules.c,v 1.89 2002/08/20 18:25:42 sam Exp $
+ * $Id: modules.c,v 1.90 2002/08/21 09:26:53 xav Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
static void AllocateAllPlugins( vlc_object_t *p_this )
{
/* Yes, there are two NULLs because we replace one with "plugin-path". */
- char * path[] = { "modules", PLUGIN_PATH, NULL, NULL };
+ char * path[] = { "modules", PLUGIN_PATH, "plugins", NULL,
+ NULL };
char ** ppsz_path = path;
char * psz_fullpath;
#endif
/* If the user provided a plugin path, we add it to the list */
- path[ sizeof(path)/sizeof(char*) - 2 ] = config_GetPsz( p_this,
+ path[ sizeof(path)/sizeof(char*) - 1 ] = config_GetPsz( p_this,
"plugin-path" );
for( ; *ppsz_path != NULL ; ppsz_path++ )