diff options
| author | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2007-11-17 06:04:28 +0000 |
|---|---|---|
| committer | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2007-11-17 06:04:28 +0000 |
| commit | e3c0aedf383c2f1da67a4c553c9c3eb18acc7e72 (patch) | |
| tree | c01ecd4599773f846c07a0cf0be9d6da66147f3a /src | |
| parent | 2c2c22f7eba5c28523fcd0a7468326fb23722229 (diff) | |
| download | libgpod-e3c0aedf383c2f1da67a4c553c9c3eb18acc7e72.tar.gz libgpod-e3c0aedf383c2f1da67a4c553c9c3eb18acc7e72.tar.xz libgpod-e3c0aedf383c2f1da67a4c553c9c3eb18acc7e72.zip | |
* src/itdb_playlist.c (itdb_splr_eval): track length in rules for
smart playlists was treated as seconds, but the iPod treats them
as milliseconds. If you told libgpod to create a smart playlist
with tracks less than 100 secs in length, but the life update of
the iPod would interpret that rule as "tracks less than 100 msec
in length", giving a vastly different result. Tested with iPod
Nano 1G and iPod nano Video (3G).
Requires corresponding fix in GUIs using this function.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1794 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 1649343..779b7a5 100644 --- a/src/itdb_playlist.c +++ b/src/itdb_playlist.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2007-02-25 11:52:48 jcs> +/* Time-stamp: <2007-11-17 15:01:39 jcs> | | Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -424,7 +424,7 @@ gboolean itdb_splr_eval (Itdb_SPLRule *splr, Itdb_Track *track) handled = TRUE; break; case ITDB_SPLFIELD_TIME: - intcomp = track->tracklen/1000; + intcomp = track->tracklen; handled = TRUE; break; case ITDB_SPLFIELD_COMPILATION: |
