diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/itdb_device.c | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,10 @@ 2008-10-21 Christophe Fergeau <teuf@gnome.org> + + * 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 <teuf@gnome.org> * src/itdb_device.c: add serial number for 16GB blue ipod nano, thanks to Thomas Pani for providing that SN. 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 * |