Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a155e540
Commit
a155e540
authored
Apr 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sort: we have a macro so use it and remove unused variable.
parent
58578d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
src/playlist/sort.c
src/playlist/sort.c
+4
-22
No files found.
src/playlist/sort.c
View file @
a155e540
...
@@ -89,8 +89,6 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
...
@@ -89,8 +89,6 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{
{
int
i_position
;
int
i_position
;
playlist_item_t
*
p_temp
;
playlist_item_t
*
p_temp
;
vlc_value_t
val
;
val
.
b_bool
=
true
;
sort_mode
=
i_mode
;
sort_mode
=
i_mode
;
sort_type
=
i_type
;
sort_type
=
i_type
;
...
@@ -170,9 +168,9 @@ static int playlist_cmp(const void *first, const void *second)
...
@@ -170,9 +168,9 @@ static int playlist_cmp(const void *first, const void *second)
int
i_test
=
0
;
int
i_test
=
0
;
if
(
sort_mode
==
SORT_TITLE
)
if
(
sort_mode
==
SORT_TITLE
)
{
{
META_STRCASECMP_NAME
(
);
META_STRCASECMP_NAME
(
);
}
}
else
if
(
sort_mode
==
SORT_TITLE_NUMERIC
)
else
if
(
sort_mode
==
SORT_TITLE_NUMERIC
)
{
{
char
*
psz_i
=
input_item_GetName
(
(
*
(
playlist_item_t
**
)
first
)
->
p_input
);
char
*
psz_i
=
input_item_GetName
(
(
*
(
playlist_item_t
**
)
first
)
->
p_input
);
...
@@ -235,23 +233,7 @@ static int playlist_cmp(const void *first, const void *second)
...
@@ -235,23 +233,7 @@ static int playlist_cmp(const void *first, const void *second)
}
}
else
else
{
{
if
(
(
*
(
playlist_item_t
**
)
first
)
->
p_input
->
psz_name
!=
NULL
&&
META_STRCASECMP_NAME
();
(
*
(
playlist_item_t
**
)
second
)
->
p_input
->
psz_name
!=
NULL
)
{
i_test
=
strcasecmp
(
(
*
(
playlist_item_t
**
)
first
)
->
p_input
->
psz_name
,
(
*
(
playlist_item_t
**
)
second
)
->
p_input
->
psz_name
);
}
else
if
(
(
*
(
playlist_item_t
**
)
first
)
->
p_input
->
psz_name
!=
NULL
&&
(
*
(
playlist_item_t
**
)
second
)
->
p_input
->
psz_name
==
NULL
)
{
i_test
=
1
;
}
else
if
(
(
*
(
playlist_item_t
**
)
first
)
->
p_input
->
psz_name
==
NULL
&&
(
*
(
playlist_item_t
**
)
second
)
->
p_input
->
psz_name
!=
NULL
)
{
i_test
=
-
1
;
}
else
i_test
=
0
;
}
}
}
}
else
if
(
sort_mode
==
SORT_URI
)
else
if
(
sort_mode
==
SORT_URI
)
...
...
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