summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2007-06-29 16:02:00 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2007-06-29 16:02:00 +0000
commit16cb751f444957b8e32100457d9b1a3578e68faf (patch)
tree1057bd2133b4580a068b9ff1ef1d8a625542bdc4
parent2c8bedec2a67390f20eaffb79dcee1cbcd6b53b4 (diff)
downloadlibgpod-16cb751f444957b8e32100457d9b1a3578e68faf.tar.gz
libgpod-16cb751f444957b8e32100457d9b1a3578e68faf.tar.xz
libgpod-16cb751f444957b8e32100457d9b1a3578e68faf.zip
* 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. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1612 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog6
-rw-r--r--src/itdb_artwork.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b7189ec..6b821de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/itdb_artwork.c b/src/itdb_artwork.c
index 113c0f2..fc44250 100644
--- a/src/itdb_artwork.c
+++ b/src/itdb_artwork.c
@@ -849,9 +849,11 @@ void itdb_thumb_free (Itdb_Thumb *thumb)
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 @@ Itdb_Thumb *itdb_thumb_duplicate (Itdb_Thumb *thumb)
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;
}