summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-07-05 16:37:41 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-07-05 16:37:41 +0000
commit63f8318eb5b4bcdda5701cf802642e2586f4c8cc (patch)
tree1751f76b837f9161b9d0abf2ba2827b7ea9468b3
parent4269ac28566229156d05d8efe5f97e66b113bcf1 (diff)
downloadlibgpod-tmz-63f8318eb5b4bcdda5701cf802642e2586f4c8cc.tar.gz
libgpod-tmz-63f8318eb5b4bcdda5701cf802642e2586f4c8cc.tar.xz
libgpod-tmz-63f8318eb5b4bcdda5701cf802642e2586f4c8cc.zip
Fix bug in thumbnail rearranging code
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2034 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog6
-rw-r--r--src/ithumb-writer.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c84bb12..fd4d7d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-07-05 Christophe Fergeau <teuf@gnome.org>
+ * src/ithumb-writer.c: fix typo in thumbnail rearranging code, we
+ were wrongly appending Itdb_Thumb_Ipod instances to lists of
+ Itdb_Thumb_Ipod_Item
+
+2008-07-05 Christophe Fergeau <teuf@gnome.org>
+
* src/db-artwork-writer.c: properly set padding to 0 in mhods type 3
2008-07-05 Christophe Fergeau <teuf@gnome.org>
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index d3d94d4..1f57b93 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -1428,7 +1428,7 @@ ithmb_rearrange_existing_thumbnails (Itdb_DB *db,
if (filename)
{
thumbs = g_hash_table_lookup (filenamehash, filename);
- thumbs = g_list_append (thumbs, thumb);
+ thumbs = g_list_append (thumbs, item);
g_hash_table_insert (filenamehash, filename, thumbs);
}
}
@@ -1453,7 +1453,7 @@ ithmb_rearrange_existing_thumbnails (Itdb_DB *db,
if (filename)
{
thumbs = g_hash_table_lookup (filenamehash, filename);
- thumbs = g_list_append (thumbs, thumb);
+ thumbs = g_list_append (thumbs, item);
g_hash_table_insert (filenamehash, filename, thumbs);
}
}