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
43367c1a
Commit
43367c1a
authored
Aug 11, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/http.c: foreach directory is now alpha-sorted in a
case-insensitive way. Fixed again str_replace().
parent
373a676f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/control/http.c
modules/control/http.c
+10
-4
No files found.
modules/control/http.c
View file @
43367c1a
...
...
@@ -1207,6 +1207,12 @@ static int Filter( const struct dirent *foo )
return
VLC_TRUE
;
}
static
int
InsensitiveAlphasort
(
const
struct
dirent
**
foo1
,
const
struct
dirent
**
foo2
)
{
return
strcasecmp
(
(
*
foo1
)
->
d_name
,
(
*
foo2
)
->
d_name
);
}
static
mvar_t
*
mvar_FileSetNew
(
intf_thread_t
*
p_intf
,
char
*
name
,
char
*
psz_dir
)
{
...
...
@@ -1312,7 +1318,7 @@ static mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
/* parse psz_src dir */
if
(
(
i_dir_content
=
scandir
(
psz_dir
,
&
pp_dir_content
,
Filter
,
a
lphasort
)
)
==
-
1
)
InsensitiveA
lphasort
)
)
==
-
1
)
{
msg_Warn
(
p_intf
,
"scandir error on %s (%s)"
,
psz_dir
,
strerror
(
errno
)
);
...
...
@@ -3335,11 +3341,11 @@ static void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
{
memcpy
(
psz_out_current
,
psz_in_current
,
p
-
psz_in_current
);
psz_out_current
+=
p
-
psz_in_current
;
memcpy
(
psz_out_current
,
psz_to
,
strlen
(
psz_to
)
);
psz_out_current
+=
strlen
(
psz_
out
);
strcpy
(
psz_out_current
,
psz_to
);
psz_out_current
+=
strlen
(
psz_
to
);
psz_in_current
=
p
+
strlen
(
psz_from
);
}
memcpy
(
psz_out_current
,
psz_in_current
,
strlen
(
psz_in_current
)
);
strcpy
(
psz_out_current
,
psz_in_current
);
psz_out_current
+=
strlen
(
psz_in_current
);
*
psz_out_current
=
'\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