Commit 29396e29 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua: remove unused parameter

parent c61fe43a
......@@ -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\", "
......
......@@ -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\".",
......
......@@ -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 );
......
......@@ -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.
......
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