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
d26257e0
Commit
d26257e0
authored
Dec 15, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http/mvar.c: Handle file extensions case-insensitively.
parent
938b3718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/control/http/mvar.c
modules/control/http/mvar.c
+10
-4
No files found.
modules/control/http/mvar.c
View file @
d26257e0
...
...
@@ -541,8 +541,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name,
{
struct
dirent
*
p_dir_content
=
pp_dir_content
[
i
];
mvar_t
*
f
;
const
char
*
psz_ext
;
char
*
psz_name
,
*
psz_tmp
;
char
*
psz_name
,
*
psz_tmp
,
*
psz_ext
;
if
(
!
strcmp
(
p_dir_content
->
d_name
,
"."
)
)
{
...
...
@@ -573,9 +572,16 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name,
psz_name
=
E_
(
FromUTF8
)(
p_intf
,
psz_tmp
);
free
(
psz_tmp
);
/* put file extension in 'ext' */
/* put
lower-case
file extension in 'ext' */
psz_ext
=
strrchr
(
psz_name
,
'.'
);
E_
(
mvar_AppendNewVar
)(
f
,
"ext"
,
psz_ext
!=
NULL
?
psz_ext
+
1
:
""
);
psz_tmp
=
psz_ext
=
strdup
(
psz_ext
!=
NULL
?
psz_ext
+
1
:
""
);
while
(
*
psz_tmp
!=
'\0'
)
{
*
psz_tmp
=
tolower
(
*
psz_tmp
);
psz_tmp
++
;
}
E_
(
mvar_AppendNewVar
)(
f
,
"ext"
,
psz_ext
);
free
(
psz_ext
);
#if defined( WIN32 )
if
(
psz_dir
[
0
]
==
'\0'
||
(
psz_dir
[
0
]
==
'\\'
&&
psz_dir
[
1
]
==
'\0'
)
)
...
...
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