[rhythmbox/mallard-help] audiocd: fix the cd lookup test program



commit fc491d5f6f857bab53de90bf160d5c8d16a2ebf6
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Mar 10 08:09:40 2013 +1000

    audiocd: fix the cd lookup test program

 plugins/audiocd/test-cd.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/audiocd/test-cd.c b/plugins/audiocd/test-cd.c
index 38c84c3..e7d3526 100644
--- a/plugins/audiocd/test-cd.c
+++ b/plugins/audiocd/test-cd.c
@@ -139,6 +139,7 @@ lookup_cb (GObject *object, GAsyncResult *result, RBAudioCDInfo *info)
        } else {
                g_print ("lookup failed: %s\n", error->message);
                g_clear_error (&error);
+               g_main_loop_quit (mainloop);
        }
 
 }
@@ -166,7 +167,7 @@ audiocd_info_cb (GObject *source, GAsyncResult *result, gpointer data)
        }
 
        if (info->musicbrainz_disc_id) {
-               const char *includes[] = { "artist-credits" };
+               const char *includes[] = { "artist-credits", NULL };
 
                rb_musicbrainz_lookup ("discid",
                                       info->musicbrainz_disc_id,


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