Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
735b1235
Commit
735b1235
authored
Mar 27, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: remove unused parameter
parent
300f0926
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
modules/lua/libs/configuration.c
modules/lua/libs/configuration.c
+1
-1
modules/lua/vlc.c
modules/lua/vlc.c
+5
-6
modules/lua/vlc.h
modules/lua/vlc.h
+1
-1
No files found.
modules/lua/libs/configuration.c
View file @
735b1235
...
...
@@ -151,7 +151,7 @@ static int vlclua_datadir_list( lua_State *L )
char
**
ppsz_dir_list
=
NULL
;
int
i
=
1
;
if
(
vlclua_dir_list
(
vlclua_get_this
(
L
),
psz_dirname
,
&
ppsz_dir_list
)
if
(
vlclua_dir_list
(
psz_dirname
,
&
ppsz_dir_list
)
!=
VLC_SUCCESS
)
return
0
;
lua_newtable
(
L
);
...
...
modules/lua/vlc.c
View file @
735b1235
...
...
@@ -194,8 +194,7 @@ static int file_compare( const char **a, const char **b )
return
strcmp
(
*
a
,
*
b
);
}
int
vlclua_dir_list
(
vlc_object_t
*
p_this
,
const
char
*
luadirname
,
char
***
pppsz_dir_list
)
int
vlclua_dir_list
(
const
char
*
luadirname
,
char
***
pppsz_dir_list
)
{
#define MAX_DIR_LIST_SIZE 5
*
pppsz_dir_list
=
malloc
(
MAX_DIR_LIST_SIZE
*
sizeof
(
char
*
));
...
...
@@ -265,7 +264,7 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
char
**
ppsz_dir_list
=
NULL
;
int
i_ret
;
if
(
(
i_ret
=
vlclua_dir_list
(
p_this
,
luadirname
,
&
ppsz_dir_list
))
!=
VLC_SUCCESS
)
if
(
(
i_ret
=
vlclua_dir_list
(
luadirname
,
&
ppsz_dir_list
))
!=
VLC_SUCCESS
)
return
i_ret
;
i_ret
=
VLC_EGENERIC
;
...
...
@@ -316,7 +315,7 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
char
*
vlclua_find_file
(
vlc_object_t
*
p_this
,
const
char
*
psz_luadirname
,
const
char
*
psz_name
)
{
char
**
ppsz_dir_list
=
NULL
;
vlclua_dir_list
(
p
_this
,
p
sz_luadirname
,
&
ppsz_dir_list
);
vlclua_dir_list
(
psz_luadirname
,
&
ppsz_dir_list
);
for
(
char
**
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
{
...
...
@@ -602,7 +601,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
char
**
ppsz_dir_list
=
NULL
;
char
**
ppsz_dir
;
lua_State
*
L
=
NULL
;
vlclua_dir_list
(
obj
,
"sd"
,
&
ppsz_dir_list
);
vlclua_dir_list
(
"sd"
,
&
ppsz_dir_list
);
for
(
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
{
int
i_files
;
...
...
@@ -774,7 +773,7 @@ int vlclua_add_modules_path( vlc_object_t *obj, lua_State *L, const char *psz_fi
count
+=
vlclua_add_modules_path_inner
(
L
,
psz_path
);
char
**
ppsz_dir_list
=
NULL
;
vlclua_dir_list
(
obj
,
psz_char
+
1
/* gruik? */
,
&
ppsz_dir_list
);
vlclua_dir_list
(
psz_char
+
1
/* gruik? */
,
&
ppsz_dir_list
);
char
**
ppsz_dir
=
ppsz_dir_list
;
for
(
;
*
ppsz_dir
&&
strcmp
(
*
ppsz_dir
,
psz_path
);
ppsz_dir
++
);
...
...
modules/lua/vlc.h
View file @
735b1235
...
...
@@ -129,7 +129,7 @@ int vlclua_push_ret( lua_State *, int i_error );
int
vlclua_scripts_batch_execute
(
vlc_object_t
*
p_this
,
const
char
*
luadirname
,
int
(
*
func
)(
vlc_object_t
*
,
const
char
*
,
void
*
),
void
*
user_data
);
int
vlclua_dir_list
(
vlc_object_t
*
p_this
,
const
char
*
luadirname
,
char
***
pppsz_dir_list
);
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
);
...
...
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