[easytag/wip/artwork-fix] Handle empty descriptions in ID3 tag artwork



commit dd7ee206c5755e9c8d80193510b690350cc964c6
Author: David King <amigadave amigadave com>
Date:   Wed Feb 11 17:49:16 2015 +0000

    Handle empty descriptions in ID3 tag artwork
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744295

 src/tags/id3v24_tag.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tags/id3v24_tag.c b/src/tags/id3v24_tag.c
index 96a0197..f79c327 100644
--- a/src/tags/id3v24_tag.c
+++ b/src/tags/id3v24_tag.c
@@ -485,7 +485,8 @@ id3tag_read_file_tag (GFile *gfile,
         update |= libid3tag_Get_Frame_Str (frame, EASYTAG_ID3_FIELD_STRING,
                                            &description);
 
-        pic = et_picture_new (type, description, 0, 0, bytes);
+        pic = et_picture_new (type, description ? description : "", 0, 0,
+                              bytes);
         g_bytes_unref (bytes);
         g_free (description);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]