[vlc-commits] lua: remove unused parameter
Rémi Denis-Courmont
git at videolan.org
Sun Mar 24 17:53:12 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 24 18:31:20 2013 +0200| [29396e29d8693d19843420a765b955bdd8703c4b] | committer: Rémi Denis-Courmont
lua: remove unused parameter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=29396e29d8693d19843420a765b955bdd8703c4b
---
modules/lua/intf.c | 4 ++--
modules/lua/services_discovery.c | 2 +-
modules/lua/vlc.c | 2 +-
modules/lua/vlc.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/lua/intf.c b/modules/lua/intf.c
index 6e4eeef..9732ce9 100644
--- a/modules/lua/intf.c
+++ b/modules/lua/intf.c
@@ -221,7 +221,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
return VLC_ENOMEM;
}
p_sys = p_intf->p_sys;
- p_sys->psz_filename = vlclua_find_file( p_this, "intf", name );
+ p_sys->psz_filename = vlclua_find_file( "intf", name );
if( !p_sys->psz_filename )
{
msg_Err( p_intf, "Couldn't find lua interface script \"%s\".",
@@ -346,7 +346,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
/* msg_Warn( p_intf, "The `telnet' lua interface script was replaced "
"by `cli', please update your configuration!" ); */
- char *wrapped_file = vlclua_find_file( p_this, "intf", "cli" );
+ char *wrapped_file = vlclua_find_file( "intf", "cli" );
if( !wrapped_file )
{
msg_Err( p_intf, "Couldn't find lua interface script \"cli\", "
diff --git a/modules/lua/services_discovery.c b/modules/lua/services_discovery.c
index d7049c7..2d6d91a 100644
--- a/modules/lua/services_discovery.c
+++ b/modules/lua/services_discovery.c
@@ -90,7 +90,7 @@ int Open_LuaSD( vlc_object_t *p_this )
}
p_sd->p_sys = p_sys;
p_sd->pf_control = Control;
- p_sys->psz_filename = vlclua_find_file( p_this, "sd", psz_name );
+ p_sys->psz_filename = vlclua_find_file( "sd", psz_name );
if( !p_sys->psz_filename )
{
msg_Err( p_sd, "Couldn't find lua services discovery script \"%s\".",
diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index 06c48e0..90ea73e 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -316,7 +316,7 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
return i_ret;
}
-char *vlclua_find_file( vlc_object_t *p_this, const char *psz_luadirname, const char *psz_name )
+char *vlclua_find_file( const char *psz_luadirname, const char *psz_name )
{
char **ppsz_dir_list = NULL;
vlclua_dir_list( psz_luadirname, &ppsz_dir_list );
diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
index fbd2915..8273fbd 100644
--- a/modules/lua/vlc.h
+++ b/modules/lua/vlc.h
@@ -131,7 +131,7 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this, const char * luadirname,
void * user_data );
int vlclua_dir_list( const char *luadirname, char ***pppsz_dir_list );
void vlclua_dir_list_free( char **ppsz_dir_list );
-char *vlclua_find_file( vlc_object_t *p_this, const char *psz_luadirname, const char *psz_name );
+char *vlclua_find_file( const char *psz_luadirname, const char *psz_name );
/*****************************************************************************
* Replace Lua file reader by VLC input. Allows loadings scripts in Zip pkg.
More information about the vlc-commits
mailing list