commit 9313e5bf67ee22c3be402c8d47963fa421fdbba3
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Thu Apr 19 21:57:28 2012 +0100

    Fix for not setting artwork correctly
    
    * Mistake in code that points to the temporary file rather than extracting
      the pixbuf data from it. Fixed to manually extract and apply data as
      artwork.

 libs/atomic-parsley/AtomicParsleyBridge.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libs/atomic-parsley/AtomicParsleyBridge.cpp 
b/libs/atomic-parsley/AtomicParsleyBridge.cpp
index 6f1db37..4fe40f5 100644
--- a/libs/atomic-parsley/AtomicParsleyBridge.cpp
+++ b/libs/atomic-parsley/AtomicParsleyBridge.cpp
@@ -383,7 +383,12 @@ void AP_read_metadata(const char *filePath, Track *track) {
                 if (tmp_file && g_file_test(tmp_file, G_FILE_TEST_EXISTS)) {
 
                     // Set the thumbnail using the tmp file
-                    itdb_track_set_thumbnails(track, tmp_file);
+                    GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(tmp_file, 
NULL);
+                    if (pixbuf) {
+                        itdb_track_set_thumbnails_from_pixbuf(track, pixbuf);
+                        g_object_unref(pixbuf);
+                    }
+
                     g_remove(tmp_file);
                 }
 

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to