From 5b71c108faa3f0c0c4317c86404dd43bd93ee37a Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Mon, 30 Apr 2007 00:46:48 +0000 Subject: * src/itdb_playlist.c (compMostOftenPlayed, compLeastOftenPlayed): compaered time_added instead of playcount (thanks to Daniele Forsi). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1423 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 4 ++++ src/itdb_playlist.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb8ee27..3a74c6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 * 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) { -- cgit