summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-08 13:31:52 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-08 13:31:52 +0200
commit40216453411e800a3aa6cc13079c1548c27d0b20 (patch)
treec927082384eb8da0a0a1927e35e343fb9ecf5091 /playlist.c
parent1746d2b90b623e49a07d92d006527cd50eba0a2d (diff)
increased precision when sorting by duration
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index da8fd240..407c6a7e 100644
--- a/playlist.c
+++ b/playlist.c
@@ -2564,7 +2564,7 @@ pl_sort_compare (playItem_t *a, playItem_t *b) {
// next = b
// it = a
if (pl_sort_is_duration) {
- cmp = pl_sort_ascending ? b->_duration * 1000 - a->_duration * 1000 : a->_duration * 1000 - b->_duration * 1000;
+ cmp = pl_sort_ascending ? b->_duration * 100000 - a->_duration * 100000 : a->_duration * 100000 - b->_duration * 100000;
}
else if (pl_sort_is_track) {
const char *t;