Commit 07ace065 authored by Sam Hocevar's avatar Sam Hocevar

* ./src/misc/modules.c: plugin extension check is now case unsensitive.

parent 03019d58
......@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.98 2002/10/14 16:46:56 sam Exp $
* $Id: modules.c,v 1.99 2002/10/29 18:57:40 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
......@@ -423,6 +423,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
p_tmp = p_first;
while( p_tmp != NULL )
{
msg_Dbg(p_this,"candidate: %s\n", p_tmp->p_module->psz_object_name);
vlc_object_yield( p_tmp->p_module );
p_tmp = p_tmp->p_next;
}
......@@ -635,8 +636,8 @@ static void AllocatePluginDir( vlc_object_t *p_this, const char *psz_dir,
}
else if( i_len > strlen( LIBEXT )
/* We only load files ending with LIBEXT */
&& !strncmp( file->d_name + i_len - strlen( LIBEXT ),
LIBEXT, strlen( LIBEXT ) ) )
&& !strncasecmp( file->d_name + i_len - strlen( LIBEXT ),
LIBEXT, strlen( LIBEXT ) ) )
{
AllocatePluginFile( p_this, psz_file );
}
......
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