Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c61fe43a
Commit
c61fe43a
authored
Mar 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: remove unused argument
parent
37bda6a0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
10 deletions
+8
-10
modules/lua/demux.c
modules/lua/demux.c
+1
-1
modules/lua/extension.c
modules/lua/extension.c
+1
-1
modules/lua/intf.c
modules/lua/intf.c
+1
-1
modules/lua/meta.c
modules/lua/meta.c
+1
-1
modules/lua/services_discovery.c
modules/lua/services_discovery.c
+1
-1
modules/lua/vlc.c
modules/lua/vlc.c
+2
-3
modules/lua/vlc.h
modules/lua/vlc.h
+1
-2
No files found.
modules/lua/demux.c
View file @
c61fe43a
...
@@ -161,7 +161,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
...
@@ -161,7 +161,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
/* Setup the module search path */
/* Setup the module search path */
if
(
vlclua_add_modules_path
(
p_demux
,
L
,
psz_filename
)
)
if
(
vlclua_add_modules_path
(
L
,
psz_filename
)
)
{
{
msg_Warn
(
p_demux
,
"Error while setting the module search path for %s"
,
msg_Warn
(
p_demux
,
"Error while setting the module search path for %s"
,
psz_filename
);
psz_filename
);
...
...
modules/lua/extension.c
View file @
c61fe43a
...
@@ -852,7 +852,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
...
@@ -852,7 +852,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
}
}
else
else
{
{
if
(
vlclua_add_modules_path
(
p_mgr
,
L
,
p_ext
->
psz_name
)
)
if
(
vlclua_add_modules_path
(
L
,
p_ext
->
psz_name
)
)
{
{
msg_Warn
(
p_mgr
,
"Error while setting the module "
msg_Warn
(
p_mgr
,
"Error while setting the module "
"search path for %s"
,
p_ext
->
psz_name
);
"search path for %s"
,
p_ext
->
psz_name
);
...
...
modules/lua/intf.c
View file @
c61fe43a
...
@@ -274,7 +274,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
...
@@ -274,7 +274,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
/* Setup the module search path */
/* Setup the module search path */
if
(
vlclua_add_modules_path
(
p_intf
,
L
,
p_sys
->
psz_filename
)
)
if
(
vlclua_add_modules_path
(
L
,
p_sys
->
psz_filename
)
)
{
{
msg_Warn
(
p_intf
,
"Error while setting the module search path for %s"
,
msg_Warn
(
p_intf
,
"Error while setting the module search path for %s"
,
p_sys
->
psz_filename
);
p_sys
->
psz_filename
);
...
...
modules/lua/meta.c
View file @
c61fe43a
...
@@ -74,7 +74,7 @@ static lua_State * init( vlc_object_t *p_this, input_item_t * p_item, const char
...
@@ -74,7 +74,7 @@ static lua_State * init( vlc_object_t *p_this, input_item_t * p_item, const char
luaopen_xml
(
L
);
luaopen_xml
(
L
);
luaopen_input_item
(
L
,
p_item
);
luaopen_input_item
(
L
,
p_item
);
if
(
vlclua_add_modules_path
(
p_this
,
L
,
psz_filename
)
)
if
(
vlclua_add_modules_path
(
L
,
psz_filename
)
)
{
{
msg_Warn
(
p_this
,
"Error while setting the module search path for %s"
,
msg_Warn
(
p_this
,
"Error while setting the module search path for %s"
,
psz_filename
);
psz_filename
);
...
...
modules/lua/services_discovery.c
View file @
c61fe43a
...
@@ -120,7 +120,7 @@ int Open_LuaSD( vlc_object_t *p_this )
...
@@ -120,7 +120,7 @@ int Open_LuaSD( vlc_object_t *p_this )
luaopen_xml
(
L
);
luaopen_xml
(
L
);
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
if
(
vlclua_add_modules_path
(
p_sd
,
L
,
p_sys
->
psz_filename
)
)
if
(
vlclua_add_modules_path
(
L
,
p_sys
->
psz_filename
)
)
{
{
msg_Warn
(
p_sd
,
"Error while setting the module search path for %s"
,
msg_Warn
(
p_sd
,
"Error while setting the module search path for %s"
,
p_sys
->
psz_filename
);
p_sys
->
psz_filename
);
...
...
modules/lua/vlc.c
View file @
c61fe43a
...
@@ -637,7 +637,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
...
@@ -637,7 +637,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
goto
error
;
goto
error
;
}
}
luaL_openlibs
(
L
);
luaL_openlibs
(
L
);
if
(
vlclua_add_modules_path
(
probe
,
L
,
psz_filename
)
)
if
(
vlclua_add_modules_path
(
L
,
psz_filename
)
)
{
{
msg_Err
(
probe
,
"Error while setting the module search path for %s"
,
msg_Err
(
probe
,
"Error while setting the module search path for %s"
,
psz_filename
);
psz_filename
);
...
@@ -736,8 +736,7 @@ static int vlclua_add_modules_path_inner( lua_State *L, const char *psz_path )
...
@@ -736,8 +736,7 @@ static int vlclua_add_modules_path_inner( lua_State *L, const char *psz_path )
return
count
;
return
count
;
}
}
#undef vlclua_add_modules_path
int
vlclua_add_modules_path
(
lua_State
*
L
,
const
char
*
psz_filename
)
int
vlclua_add_modules_path
(
vlc_object_t
*
obj
,
lua_State
*
L
,
const
char
*
psz_filename
)
{
{
/* Setup the module search path:
/* Setup the module search path:
* * "The script's directory"/modules
* * "The script's directory"/modules
...
...
modules/lua/vlc.h
View file @
c61fe43a
...
@@ -152,8 +152,7 @@ int vlclua_playlist_add_internal( vlc_object_t *, lua_State *, playlist_t *,
...
@@ -152,8 +152,7 @@ int vlclua_playlist_add_internal( vlc_object_t *, lua_State *, playlist_t *,
input_item_t
*
,
bool
);
input_item_t
*
,
bool
);
#define vlclua_playlist_add_internal( a, b, c, d, e ) vlclua_playlist_add_internal( VLC_OBJECT( a ), b, c, d, e )
#define vlclua_playlist_add_internal( a, b, c, d, e ) vlclua_playlist_add_internal( VLC_OBJECT( a ), b, c, d, e )
int
vlclua_add_modules_path
(
vlc_object_t
*
,
lua_State
*
,
const
char
*
psz_filename
);
int
vlclua_add_modules_path
(
lua_State
*
,
const
char
*
psz_filename
);
#define vlclua_add_modules_path( a, b, c ) vlclua_add_modules_path( VLC_OBJECT( a ), b, c )
/**
/**
* Per-interface private state
* Per-interface private state
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment