Revision: 1612
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1612&view=rev
Author:   jcsjcs
Date:     2007-06-29 09:02:00 -0700 (Fri, 29 Jun 2007)

Log Message:
-----------
        * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fix
          compile time error when compiling without GDKPIXBUF. Alternative
          fix: add '#include <glib-object.h>'. Thanks to Olivier Cr?\195?\170te.

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

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2007-06-29 15:59:54 UTC (rev 1611)
+++ libgpod/trunk/ChangeLog     2007-06-29 16:02:00 UTC (rev 1612)
@@ -1,3 +1,9 @@
+2007-06-23 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+       * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fix
+         compile time error when compiling without GDKPIXBUF. Alternative
+         fix: add '#include <glib-object.h>'. Thanks to Olivier CrĂȘte.
+
 2007-06-28  Nicholas Piper  <nicholas at users.sourceforge.net>
 
        * bindings/python/ipod.py: Remove hard-coding of

Modified: libgpod/trunk/src/itdb_artwork.c
===================================================================
--- libgpod/trunk/src/itdb_artwork.c    2007-06-29 15:59:54 UTC (rev 1611)
+++ libgpod/trunk/src/itdb_artwork.c    2007-06-29 16:02:00 UTC (rev 1612)
@@ -849,9 +849,11 @@
     g_return_if_fail (thumb);
 
     g_free (thumb->image_data);
+#ifdef HAVE_GDKPIXBUF
     if (thumb->pixbuf) {
         g_object_unref (G_OBJECT (thumb->pixbuf));
     }
+#endif
     g_free (thumb->filename);
     g_free (thumb);
 }
@@ -883,9 +885,11 @@
        memcpy (new_thumb->image_data, thumb->image_data,
                new_thumb->image_data_len);
     }
+#ifdef HAVE_GDKPIXBUF
     if (thumb->pixbuf) {
         g_object_ref (G_OBJECT (thumb->pixbuf));
     }
+#endif
     return new_thumb;
 }
 


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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to