Revision: 2138
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2138&view=rev
Author:   teuf
Date:     2008-10-07 23:37:15 +0000 (Tue, 07 Oct 2008)

Log Message:
-----------
Fix itdb_device_supports_artwork to use info from SysInfoExtended

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/itdb_device.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2008-10-07 18:57:22 UTC (rev 2137)
+++ libgpod/trunk/ChangeLog     2008-10-07 23:37:15 UTC (rev 2138)
@@ -1,5 +1,10 @@
 2008-10-07  Christophe Fergeau  <[EMAIL PROTECTED]>
 
+       * src/itdb_device.c: fix itdb_device_supports_artwork to properly
+       take into account data from SysInfoExtended if available
+
+2008-10-07  Christophe Fergeau  <[EMAIL PROTECTED]>
+
        * src/itdb_sysinfoextended_parser.c: artwork is stored in <array>
        nodes (which are parsed to a GValueArray), reflect that in the
        SysInfoExtended parsing code.

Modified: libgpod/trunk/src/itdb_device.c
===================================================================
--- libgpod/trunk/src/itdb_device.c     2008-10-07 18:57:22 UTC (rev 2137)
+++ libgpod/trunk/src/itdb_device.c     2008-10-07 23:37:15 UTC (rev 2138)
@@ -1342,11 +1342,13 @@
  */
 gboolean itdb_device_supports_artwork (const Itdb_Device *device)
 {
+    GList *formats;
     if (device == NULL) {
         return FALSE;
     }
-
-    return (itdb_device_get_artwork_formats (device, ARTWORK_TYPE_COVER_ART) 
!= NULL);
+    formats = itdb_device_get_cover_art_formats (device);
+    g_list_free (formats);
+    return (formats != NULL);
 }
 
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to