Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4724e090
Commit
4724e090
authored
May 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: don't reinvent scandir
parent
fd658c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
modules/misc/lua/vlc.c
modules/misc/lua/vlc.c
+1
-12
No files found.
modules/misc/lua/vlc.c
View file @
4724e090
...
...
@@ -460,7 +460,6 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
{
int
i_ret
=
VLC_EGENERIC
;
DIR
*
dir
=
NULL
;
char
**
ppsz_filelist
=
NULL
;
char
**
ppsz_fileend
=
NULL
;
char
**
ppsz_file
;
...
...
@@ -487,16 +486,8 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
ppsz_filelist
=
NULL
;
}
if
(
dir
)
{
closedir
(
dir
);
}
msg_Dbg
(
p_this
,
"Trying Lua scripts in %s"
,
*
ppsz_dir
);
dir
=
utf8_opendir
(
*
ppsz_dir
);
if
(
!
dir
)
continue
;
i_files
=
utf8_loaddir
(
dir
,
&
ppsz_filelist
,
file_select
,
i_files
=
utf8_scandir
(
*
ppsz_dir
,
&
ppsz_filelist
,
file_select
,
file_compare
);
if
(
i_files
<
1
)
continue
;
ppsz_fileend
=
ppsz_filelist
+
i_files
;
...
...
@@ -528,8 +519,6 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
for
(
ppsz_dir
=
ppsz_dir_list
;
*
ppsz_dir
;
ppsz_dir
++
)
free
(
*
ppsz_dir
);
if
(
dir
)
closedir
(
dir
);
return
i_ret
;
}
...
...
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