Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
85d007c5
Commit
85d007c5
authored
Nov 10, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use Apple readdir fix twice
parent
e55c5705
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
modules/control/http/mvar.c
modules/control/http/mvar.c
+1
-4
modules/control/http/util.c
modules/control/http/util.c
+4
-9
No files found.
modules/control/http/mvar.c
View file @
85d007c5
...
...
@@ -573,10 +573,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name,
}
f
=
E_
(
mvar_New
)(
name
,
"set"
);
/* FIXME: merge vlc_fix_readdir_charset with utf8_readir */
psz_dummy
=
vlc_fix_readdir_charset
(
p_intf
,
psz_dir_content
);
psz_name
=
E_
(
FromUTF8
)(
p_intf
,
psz_dummy
);
free
(
psz_dummy
);
psz_name
=
E_
(
FromUTF8
)(
p_intf
,
psz_dir_content
);
/* put lower-case file extension in 'ext' */
psz_ext
=
strrchr
(
psz_name
,
'.'
);
...
...
modules/control/http/util.c
View file @
85d007c5
...
...
@@ -213,15 +213,10 @@ int E_(ParseDirectory)( intf_thread_t *p_intf, char *psz_root,
httpd_file_sys_t
*
f
=
NULL
;
httpd_handler_sys_t
*
h
=
NULL
;
vlc_bool_t
b_index
;
char
*
psz_tmp
,
*
psz_file
,
*
psz_name
,
*
psz_ext
;
psz_tmp
=
vlc_fix_readdir_charset
(
p_intf
,
dir
);
psz_file
=
E_
(
FromUTF8
)(
p_intf
,
psz_tmp
);
free
(
psz_tmp
);
psz_tmp
=
vlc_fix_readdir_charset
(
p_intf
,
&
dir
[
strlen
(
psz_root
)]
);
psz_name
=
E_
(
FileToUrl
)(
psz_tmp
,
&
b_index
);
free
(
psz_tmp
);
char
*
psz_file
,
*
psz_name
,
*
psz_ext
;
psz_file
=
E_
(
FromUTF8
)(
p_intf
,
dir
);
psz_name
=
E_
(
FileToUrl
)(
&
dir
[
strlen
(
psz_root
)],
&
b_index
);
psz_ext
=
strrchr
(
psz_file
,
'.'
);
if
(
psz_ext
!=
NULL
)
{
...
...
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