diff options
author | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-06-29 04:04:20 +0000 |
---|---|---|
committer | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-06-29 04:04:20 +0000 |
commit | 1db00c5523e7da715c3ab6df20b8dbb81acee83a (patch) | |
tree | 64bb4b22f1e965aac05f5b40914c59d62758d486 | |
parent | 21bd7105e7d57f51bf68b3e8a5d065a3fc2a8532 (diff) | |
download | libgpod-1db00c5523e7da715c3ab6df20b8dbb81acee83a.tar.gz libgpod-1db00c5523e7da715c3ab6df20b8dbb81acee83a.tar.xz libgpod-1db00c5523e7da715c3ab6df20b8dbb81acee83a.zip |
* src/ithumb-writer.c (itdb_write_ithumb_files): fix bug when
writing photos (loop variable "it" re-used inside loop).
Rename loop variable to "itw" also in case of writing artwork.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2023 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ithumb-writer.c | 11 |
2 files changed, 12 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2008-06-29 Jorg Schuler <jcsjcs at users.sourceforge.net> + + * src/ithumb-writer.c (itdb_write_ithumb_files): fix bug when + writing photos (loop variable "it" re-used inside loop). + Rename loop variable to "itw" also in case of writing artwork. + 2008-06-28 Christophe Fergeau <teuf@gnome.org> patch by: Mike Heffner <mikeh@fesnel.com> diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c index 46acd70..9880e8d 100644 --- a/src/ithumb-writer.c +++ b/src/ithumb-writer.c @@ -1566,10 +1566,10 @@ itdb_write_ithumb_files (Itdb_DB *db) } type = track->artwork->thumbnail->data_type; if (type != ITDB_THUMB_TYPE_IPOD) { - GList *it; + GList *itw; thumb_ipod = (Itdb_Thumb_Ipod *)itdb_thumb_ipod_new (); - for (it = writers; it != NULL; it = it->next) { - write_thumbnail (it->data, + for (itw = writers; itw != NULL; itw = itw->next) { + write_thumbnail (itw->data, track->artwork, thumb_ipod); } @@ -1591,9 +1591,10 @@ itdb_write_ithumb_files (Itdb_DB *db) } type = photo->thumbnail->data_type; if (type != ITDB_THUMB_TYPE_IPOD) { + GList *itw; thumb_ipod = (Itdb_Thumb_Ipod *)itdb_thumb_ipod_new (); - for (it = writers; it != NULL; it = it->next) { - write_thumbnail (it->data, photo, thumb_ipod); + for (itw = writers; itw != NULL; itw = itw->next) { + write_thumbnail (itw->data, photo, thumb_ipod); } itdb_thumb_free (photo->thumbnail); photo->thumbnail = (Itdb_Thumb *)thumb_ipod; |