diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-04-30 00:46:48 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-04-30 00:46:48 +0000 |
commit | 9dff0296b412121068a2be8652a747f9cc35f2e2 (patch) | |
tree | dd9b4f11607fcfcbe407b4e9d852597d3ba45f96 /src | |
parent | 5d6799549c3e9f155b489cd9f1be6b431096a611 (diff) | |
download | libgpod-9dff0296b412121068a2be8652a747f9cc35f2e2.tar.gz libgpod-9dff0296b412121068a2be8652a747f9cc35f2e2.tar.xz libgpod-9dff0296b412121068a2be8652a747f9cc35f2e2.zip |
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/itdb_playlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |