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
f5dbbddb
Commit
f5dbbddb
authored
Oct 25, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: cosmetics.
parent
6292f647
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
modules/misc/lua/vlc.c
modules/misc/lua/vlc.c
+8
-10
No files found.
modules/misc/lua/vlc.c
View file @
f5dbbddb
...
...
@@ -256,8 +256,7 @@ int vlclua_dir_list( vlc_object_t *p_this, const char *luadirname,
void
vlclua_dir_list_free
(
char
**
ppsz_dir_list
)
{
char
**
ppsz_dir
;
for
(
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
for
(
char
**
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
free
(
*
ppsz_dir
);
free
(
ppsz_dir_list
);
}
...
...
@@ -272,20 +271,19 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
void
*
user_data
)
{
char
**
ppsz_dir_list
=
NULL
;
int
i_ret
;
int
i_ret
=
vlclua_dir_list
(
p_this
,
luadirname
,
&
ppsz_dir_list
);
if
(
i_ret
!=
VLC_SUCCESS
)
if
((
i_ret
=
vlclua_dir_list
(
p_this
,
luadirname
,
&
ppsz_dir_list
)
!=
VLC_SUCCESS
))
return
i_ret
;
i_ret
=
VLC_EGENERIC
;
i_ret
=
VLC_EGENERIC
;
for
(
char
**
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
{
char
**
ppsz_filelist
;
int
i_files
;
msg_Dbg
(
p_this
,
"Trying Lua scripts in %s"
,
*
ppsz_dir
);
i_files
=
vlc_scandir
(
*
ppsz_dir
,
&
ppsz_filelist
,
file_select
,
file_compare
);
i
nt
i
_files
=
vlc_scandir
(
*
ppsz_dir
,
&
ppsz_filelist
,
file_select
,
file_compare
);
if
(
i_files
<
0
)
continue
;
...
...
@@ -326,9 +324,9 @@ 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
;
char
**
ppsz_dir
;
vlclua_dir_list
(
p_this
,
psz_luadirname
,
&
ppsz_dir_list
);
for
(
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
for
(
char
**
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
{
for
(
const
char
**
ppsz_ext
=
ppsz_lua_exts
;
*
ppsz_ext
;
ppsz_ext
++
)
{
...
...
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