Commit 620b69bb authored by Xavier Marchesini's avatar Xavier Marchesini

* libvlc.c : Win32 compilation fix.

* modules.c : we now check the directory plugins/ to find some plugins.
(this will allow us to use the packager / installer which wasn't aware
of plugins -> modules :)
parent 97acd0f3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source * libvlc.c: main libvlc source
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * 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> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -50,6 +50,10 @@ ...@@ -50,6 +50,10 @@
# include <io.h> # include <io.h>
#endif #endif
#ifdef WIN32 /* optind, getopt(), included in unistd.h */
# include "GNUgetopt/getopt.h"
#endif
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
# include <locale.h> # include <locale.h>
#endif #endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions * modules.c : Builtin and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com> * Ethan C. Baldridge <BaldridgeE@cadmus.com>
...@@ -526,7 +526,8 @@ void __module_Unneed( vlc_object_t * p_this, module_t * p_module ) ...@@ -526,7 +526,8 @@ void __module_Unneed( vlc_object_t * p_this, module_t * p_module )
static void AllocateAllPlugins( vlc_object_t *p_this ) static void AllocateAllPlugins( vlc_object_t *p_this )
{ {
/* Yes, there are two NULLs because we replace one with "plugin-path". */ /* 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 ** ppsz_path = path;
char * psz_fullpath; char * psz_fullpath;
...@@ -537,7 +538,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this ) ...@@ -537,7 +538,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
#endif #endif
/* If the user provided a plugin path, we add it to the list */ /* 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" ); "plugin-path" );
for( ; *ppsz_path != NULL ; ppsz_path++ ) for( ; *ppsz_path != NULL ; ppsz_path++ )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment