From 5e28c56e860cf219ab70991e33abacc1fce973a7 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 21 Oct 2008 18:37:14 +0000 Subject: Use SysInfoExtended if available for itdb_device_supports_photo git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2143 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 6 ++++++ src/itdb_device.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 44a080a..39bf41f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-21 Christophe Fergeau + + * src/itdb_device.c: use information from SysInfoExtended to tell + if an ipod supports photos or not instead of only using the + hard-coded tables in libgpod + 2008-10-21 Christophe Fergeau * src/itdb_device.c: add serial number for 16GB blue ipod nano, diff --git a/src/itdb_device.c b/src/itdb_device.c index 30c8bac..12c3fbc 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -1412,11 +1412,13 @@ gboolean itdb_device_supports_video (const Itdb_Device *device) gboolean itdb_device_supports_photo (const Itdb_Device *device) { + GList *formats; if (device == NULL) { return FALSE; } - - return (itdb_device_get_artwork_formats (device, ARTWORK_TYPE_PHOTO) != NULL); + formats = itdb_device_get_photo_formats (device); + g_list_free (formats); + return (formats != NULL); } static char * -- cgit