sound-juicer r2503 - in trunk: . libjuicer
- From: rburton svn gnome org
- To: svn-commits-list gnome org
- Subject: sound-juicer r2503 - in trunk: . libjuicer
- Date: Mon, 6 Apr 2009 16:27:39 +0000 (UTC)
Author: rburton
Date: Mon Apr 6 16:27:39 2009
New Revision: 2503
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2503&view=rev
Log:
2009-04-06 Hubert Figuiere <hub figuiere net>
* libjuicer/sj-metadata-musicbrainz3.c (mb_list_albums):
Make sure release is not NULL. (Close: #575820)
Modified:
trunk/ChangeLog
trunk/libjuicer/sj-metadata-musicbrainz3.c
Modified: trunk/libjuicer/sj-metadata-musicbrainz3.c
==============================================================================
--- trunk/libjuicer/sj-metadata-musicbrainz3.c (original)
+++ trunk/libjuicer/sj-metadata-musicbrainz3.c Mon Apr 6 16:27:39 2009
@@ -264,16 +264,19 @@
char buffer[512];
release = mb_result_list_get_release (results, i);
- mb_release_get_id (release, buffer, sizeof (buffer));
- includes = get_release_includes ();
- release = mb_query_get_release_by_id (query, buffer, includes);
- mb_release_includes_free (includes);
-
- album = make_album_from_release (release);
- album->metadata_source = SOURCE_MUSICBRAINZ;
- fill_empty_durations (priv->disc, album);
- albums = g_list_append (albums, album);
- mb_release_free (release);
+ if(release) {
+ mb_release_get_id (release, buffer, sizeof (buffer));
+ includes = get_release_includes ();
+ release = mb_query_get_release_by_id (query, buffer, includes);
+ if(release) {
+ mb_release_includes_free (includes);
+ album = make_album_from_release (release);
+ album->metadata_source = SOURCE_MUSICBRAINZ;
+ fill_empty_durations (priv->disc, album);
+ albums = g_list_append (albums, album);
+ mb_release_free (release);
+ }
+ }
}
mb_result_list_free (results);
mb_query_free (query);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]