Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
df15918b
Commit
df15918b
authored
Apr 10, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: support for sorting a node based on numerical iterpretation of the
title
parent
3fc7cdd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
include/vlc_playlist.h
include/vlc_playlist.h
+1
-0
src/playlist/sort.c
src/playlist/sort.c
+5
-0
No files found.
include/vlc_playlist.h
View file @
df15918b
...
...
@@ -226,6 +226,7 @@ struct playlist_add_t
#define SORT_AUTHOR 3
#define SORT_RANDOM 4
#define SORT_DURATION 5
#define SORT_TITLE_NUMERIC 6
#define ORDER_NORMAL 0
#define ORDER_REVERSE 1
...
...
src/playlist/sort.c
View file @
df15918b
...
...
@@ -173,6 +173,11 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
i_test
=
strcasecmp
(
pp_items
[
i
]
->
input
.
psz_name
,
pp_items
[
i_small
]
->
input
.
psz_name
);
}
else
if
(
i_mode
==
SORT_TITLE_NUMERIC
)
{
i_test
=
atoi
(
pp_items
[
i
]
->
input
.
psz_name
)
-
atoi
(
pp_items
[
i_small
]
->
input
.
psz_name
);
}
else
if
(
i_mode
==
SORT_DURATION
)
{
i_test
=
pp_items
[
i
]
->
input
.
i_duration
-
...
...
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