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
2c50013e
Commit
2c50013e
authored
Aug 01, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http.c: Add an 'ext' field to file structures in
order to get the file extension.
parent
52267cfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/control/http.c
modules/control/http.c
+5
-0
No files found.
modules/control/http.c
View file @
2c50013e
...
...
@@ -1191,6 +1191,7 @@ static mvar_t *mvar_FileSetNew( char *name, char *psz_dir )
for
(
;;
)
{
mvar_t
*
f
;
const
char
*
psz_ext
;
/* parse psz_src dir */
if
(
(
p_dir_content
=
readdir
(
p_dir
)
)
==
NULL
)
...
...
@@ -1214,6 +1215,10 @@ static mvar_t *mvar_FileSetNew( char *name, char *psz_dir )
mvar_AppendNewVar
(
f
,
"name"
,
tmp
);
mvar_AppendNewVar
(
f
,
"basename"
,
p_dir_content
->
d_name
);
/* put file extension in 'ext' */
psz_ext
=
strrchr
(
p_dir_content
->
d_name
,
'.'
);
mvar_AppendNewVar
(
f
,
"ext"
,
psz_ext
!=
NULL
?
psz_ext
+
1
:
""
);
#ifdef HAVE_SYS_STAT_H
if
(
S_ISDIR
(
stat_info
.
st_mode
)
)
{
...
...
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