[sound-juicer] Fix crasher when MusicBrainz can't read a disc
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [sound-juicer] Fix crasher when MusicBrainz can't read a disc
- Date: Thu, 10 Dec 2009 19:32:01 +0000 (UTC)
commit 7f94a7b90f823a123bd7aaa2f49600aabfcbc24b
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 10 19:30:36 2009 +0000
Fix crasher when MusicBrainz can't read a disc
But we can.
libjuicer/sj-metadata-musicbrainz3.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libjuicer/sj-metadata-musicbrainz3.c b/libjuicer/sj-metadata-musicbrainz3.c
index 5845e0a..5374399 100644
--- a/libjuicer/sj-metadata-musicbrainz3.c
+++ b/libjuicer/sj-metadata-musicbrainz3.c
@@ -244,6 +244,9 @@ mb_list_albums (SjMetadata *metadata, char **url, GError **error)
}
priv->disc = mb_read_disc (priv->cdrom);
+ if (priv->disc == NULL) {
+ return NULL;
+
if (url != NULL) {
mb_get_submission_url (priv->disc, NULL, 0, buffer, sizeof (buffer));
*url = g_strdup (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]