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 | 5b71c108faa3f0c0c4317c86404dd43bd93ee37a (patch) | |
tree | dd9b4f11607fcfcbe407b4e9d852597d3ba45f96 /src/itdb_playlist.c | |
parent | 11a7637b8953baa95382bfc111b6a658de35dace (diff) | |
download | libgpod-tmz-5b71c108faa3f0c0c4317c86404dd43bd93ee37a.tar.gz libgpod-tmz-5b71c108faa3f0c0c4317c86404dd43bd93ee37a.tar.xz libgpod-tmz-5b71c108faa3f0c0c4317c86404dd43bd93ee37a.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/itdb_playlist.c')
-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) { |