diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | src/itdb_playlist.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -8,6 +8,10 @@ * tests/get-timezone.c: added to CVS (thanks to Daniele Forsi). + * src/itdb_playlist.c (compMostOftenPlayed, compLeastOftenPlayed): + compaered time_added instead of playcount (thanks to Daniele + Forsi). + 2007-04-28 Jorg Schuler <jcsjcs at users.sourceforge.net> * src/itdb.h: added padding to exported structures so new entries diff --git a/src/itdb_playlist.c b/src/itdb_playlist.c index 2d56a23..1649343 100644 --- a/src/itdb_playlist.c +++ b/src/itdb_playlist.c @@ -640,11 +640,11 @@ static gint compLeastRecentlyAdded (Itdb_Track *a, Itdb_Track *b) } static gint compMostOftenPlayed (Itdb_Track *a, Itdb_Track *b) { - return b->time_added - a->time_added; + return b->playcount - a->playcount; } static gint compLeastOftenPlayed (Itdb_Track *a, Itdb_Track *b) { - return a->time_added - b->time_added; + return a->playcount - b->playcount; } static gint compMostRecentlyPlayed (Itdb_Track *a, Itdb_Track *b) { |
