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
41bf4c46
Commit
41bf4c46
authored
Mar 02, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Playlist: fix faulty duration sorting due to integer overflow
close #3361
parent
86d3f7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/playlist/sort.c
src/playlist/sort.c
+5
-2
No files found.
src/playlist/sort.c
View file @
41bf4c46
...
...
@@ -240,8 +240,11 @@ SORTFN( SORT_DESCRIPTION, first, second )
SORTFN
(
SORT_DURATION
,
first
,
second
)
{
return
input_item_GetDuration
(
first
->
p_input
)
-
input_item_GetDuration
(
second
->
p_input
);
mtime_t
time1
=
input_item_GetDuration
(
first
->
p_input
);
mtime_t
time2
=
input_item_GetDuration
(
second
->
p_input
);
int
i_ret
=
time1
>
time2
?
1
:
(
time1
==
time2
?
0
:
-
1
);
return
i_ret
;
}
SORTFN
(
SORT_GENRE
,
first
,
second
)
...
...
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