[sound-juicer/gnome-2-26] Fix crasher when extracting an unknown CD



commit 5b03fbc73603a4ac68766a656fd74d255ae5a93c
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 27 16:01:37 2009 +0000

    Fix crasher when extracting an unknown CD
    
    If the album data isn't set in the track, then we can't
    get to the album title, and kaboom!

 libjuicer/sj-metadata-gvfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libjuicer/sj-metadata-gvfs.c b/libjuicer/sj-metadata-gvfs.c
index 8ccdd4c..7389d7f 100644
--- a/libjuicer/sj-metadata-gvfs.c
+++ b/libjuicer/sj-metadata-gvfs.c
@@ -124,6 +124,7 @@ gvfs_list_albums (SjMetadata *metadata, char **url, GError **error)
 
     track = g_new0 (TrackDetails, 1);
     track->number = i;
+    track->album = album;
     track->title = g_strdup (g_file_info_get_attribute_string (info, "xattr::org.gnome.audio.title"));
     if (track->title == NULL)
       track->title = g_strdup_printf (_("Track %d"), i);



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