c0ba2ba
Index: ChangeLog
c0ba2ba
===================================================================
c0ba2ba
--- ChangeLog	(revision 1796)
c0ba2ba
+++ ChangeLog	(revision 1797)
c0ba2ba
@@ -1,3 +1,15 @@
c0ba2ba
+2007-11-17  Jorg Schuler <jcsjcs at users.sourceforge.net>
c0ba2ba
+
c0ba2ba
+	* src/itdb_playlist.c (itdb_splr_eval): track length in rules for
c0ba2ba
+	  smart playlists was treated as seconds, but the iPod treats them
c0ba2ba
+	  as milliseconds. If you told libgpod to create a smart playlist
c0ba2ba
+	  with tracks less than 100 secs in length, but the life update of
c0ba2ba
+	  the iPod would interpret that rule as "tracks less than 100 msec
c0ba2ba
+	  in length", giving a vastly different result. Tested with iPod
c0ba2ba
+	  Nano 1G and iPod nano Video (3G).
c0ba2ba
+
c0ba2ba
+	  Requires corresponding fix in GUIs using this function.
c0ba2ba
+
c0ba2ba
 2007-11-16  Christophe Fergeau <teuf@gnome.org>
c0ba2ba
 
c0ba2ba
 	* src/itdb_device.c: fix typoes in iPod Touch model lists
c0ba2ba
Index: src/itdb_playlist.c
c0ba2ba
===================================================================
c0ba2ba
--- src/itdb_playlist.c	(revision 1796)
c0ba2ba
+++ src/itdb_playlist.c	(revision 1797)
c0ba2ba
@@ -1,5 +1,4 @@
c0ba2ba
-/* Time-stamp: <2007-02-25 11:52:48 jcs>
c0ba2ba
-|
c0ba2ba
+/*
c0ba2ba
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
c0ba2ba
 |  Part of the gtkpod project.
c0ba2ba
 | 
c0ba2ba
@@ -424,7 +423,7 @@
c0ba2ba
 	handled = TRUE;
c0ba2ba
 	break;
c0ba2ba
     case ITDB_SPLFIELD_TIME:
c0ba2ba
-	intcomp = track->tracklen/1000;
c0ba2ba
+	intcomp = track->tracklen;
c0ba2ba
 	handled = TRUE;
c0ba2ba
 	break;
c0ba2ba
     case ITDB_SPLFIELD_COMPILATION: