commit 42e9dd1e0d84e75023375dd415e9bbe332c66ef8 Author: Alex Mauer "hawke <ha...@hawkesnest.net> Date: Wed Jul 21 18:29:58 2010 +0200
improve album comparison Before this commit, tracks with no (or same) album name and where one has an artist name and the other does not have an artist name would be considered as part of the same album. src/itdb_itunesdb.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) --- diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 2a19ff7..4c664e1 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -5538,11 +5538,9 @@ static gboolean itdb_album_equal (gconstpointer v1, gconstpointer v2) } if ((track1->albumartist != NULL) && (track2->albumartist != NULL)) { - return safe_str_equal (track1->albumartist, track2->albumartist); - } else if ((track1->artist != NULL) && (track2->artist != NULL)) { - return safe_str_equal (track1->artist, track2->artist); + return safe_str_equal (track1->albumartist, track2->albumartist); } else { - return same_album; + return safe_str_equal (track1->artist, track2->artist); } } ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2