summaryrefslogtreecommitdiffstats
path: root/src/db-image-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db-image-parser.c')
-rw-r--r--src/db-image-parser.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/db-image-parser.c b/src/db-image-parser.c
index b04cec6..3842135 100644
--- a/src/db-image-parser.c
+++ b/src/db-image-parser.c
@@ -159,13 +159,16 @@ ipod_image_new_from_mhni (MhniHeader *mhni, const char *mount_point)
img->width = (GINT_FROM_LE (mhni->image_dimensions) & 0xffff0000) >> 16;
img->height = (GINT_FROM_LE (mhni->image_dimensions) & 0x0000ffff);
- if (mhni->correlation_id == IPOD_THUMBNAIL_FULL_SIZE_CORRELATION_ID) {
+ switch (mhni->correlation_id) {
+ case IPOD_THUMBNAIL_FULL_SIZE_CORRELATION_ID:
+ case IPOD_NANO_THUMBNAIL_FULL_SIZE_CORRELATION_ID:
img->type = ITDB_IMAGE_FULL_SCREEN;
- } else if (mhni->correlation_id == IPOD_THUMBNAIL_NOW_PLAYING_CORRELATION_ID)
- {
+ break;
+ case IPOD_THUMBNAIL_NOW_PLAYING_CORRELATION_ID:
+ case IPOD_NANO_THUMBNAIL_NOW_PLAYING_CORRELATION_ID:
img->type = ITDB_IMAGE_NOW_PLAYING;
-
- } else {
+ break;
+ default:
g_print ("Unrecognized image size: %08x\n",
GINT_FROM_LE (mhni->image_dimensions));
g_free (img);