Update of /cvsroot/gtkpod/libgpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv27651/src
Modified Files:
itdb_playlist.c
Log Message:
* src/itdb_playlist.c (compMostOftenPlayed, compLeastOftenPlayed):
compaered time_added instead of playcount (thanks to Daniele
Forsi).
Index: itdb_playlist.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/itdb_playlist.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- itdb_playlist.c 27 Apr 2007 15:57:44 -0000 1.23
+++ itdb_playlist.c 30 Apr 2007 00:46:48 -0000 1.24
@@ -640,11 +640,11 @@
}
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)
{
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2