summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-09-28 15:10:27 +0000
committerjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2005-09-28 15:10:27 +0000
commitf591e5d2341f6ac01666b3c40fa815764c1adbcb (patch)
tree4dec6fe66682023e4c445ec36deae81a639e7e10 /tests
parent587b839b227ce9d915452bcbcbf19ddd8d474ca1 (diff)
downloadlibgpod-f591e5d2341f6ac01666b3c40fa815764c1adbcb.tar.gz
libgpod-f591e5d2341f6ac01666b3c40fa815764c1adbcb.tar.xz
libgpod-f591e5d2341f6ac01666b3c40fa815764c1adbcb.zip
* src/itdb_track.c: include thumbnails into itdb_track_duplicate()
(Christophe Fergeau) * src/db-image-parser.c: support for iPod nano (Christophe Fergeau) * configure.c: make MacOS compatible (Tristan O'Tierney) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1109 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'tests')
-rw-r--r--tests/test-covers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-covers.c b/tests/test-covers.c
index a119cc9..7c886b2 100644
--- a/tests/test-covers.c
+++ b/tests/test-covers.c
@@ -38,10 +38,12 @@ ipod_image_to_gdk_pixbuf (Itdb_Image *image)
guchar *pixels;
int row_stride;
+ printf ("width: %d height: %d\n", image->width, image->height);
+
if (image->type == ITDB_IMAGE_FULL_SCREEN) {
- row_stride = 140;
+ row_stride = 100;
} else if (image->type == ITDB_IMAGE_NOW_PLAYING) {
- row_stride = 56;
+ row_stride = 42;
} else {
return NULL;
}
@@ -83,6 +85,8 @@ save_song_thumbnails (Itdb_Track *song)
gchar *filename;
image = (Itdb_Image *)it->data;
+ g_return_if_fail (image);
+
filename = NULL;
if (image->type == ITDB_IMAGE_FULL_SCREEN) {
filename = g_strdup_printf ("/tmp/fullsize%016llx.png",