[rhythmbox] audiocd: fix the cd lookup test program



commit 1e44254786f4d5ce5a80f4ec99852004b686f597
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]