[rhythmbox] audiocd: fix build without musicbrainz



commit aeaf1686e47dac6a6effdd9584f8397656b9aad0
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Oct 31 18:45:04 2011 +1000

    audiocd: fix build without musicbrainz

 plugins/audiocd/rb-audiocd-source.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/audiocd/rb-audiocd-source.c b/plugins/audiocd/rb-audiocd-source.c
index 39c1a86..7b9f9ca 100644
--- a/plugins/audiocd/rb-audiocd-source.c
+++ b/plugins/audiocd/rb-audiocd-source.c
@@ -90,9 +90,7 @@ static gboolean update_disc_number_cb (GtkWidget *widget, GdkEventFocus *event,
 static void info_bar_response_cb (GtkInfoBar *info_bar, gint response_id, RBAudioCdSource *source);
 #endif
 
-#if defined(HAVE_SJ_METADATA_GETTER)
 static void reload_metadata_cmd (GtkAction *action, RBAudioCdSource *source);
-#endif
 static void copy_tracks_cmd (GtkAction *action, RBAudioCdSource *source);
 
 static void extract_cell_data_func (GtkTreeViewColumn *column,
@@ -739,11 +737,11 @@ rb_audiocd_scan_songs (RBAudioCdSource *source,
 	return ok;
 }
 
-#ifdef HAVE_SJ_METADATA_GETTER
 
 static void
 reload_metadata_cmd (GtkAction *action, RBAudioCdSource *source)
 {
+#ifdef HAVE_SJ_METADATA_GETTER
 	RhythmDB *db;
 
 	g_return_if_fail (RB_IS_AUDIOCD_SOURCE (source));
@@ -751,8 +749,10 @@ reload_metadata_cmd (GtkAction *action, RBAudioCdSource *source)
 	db = get_db_for_source (RB_AUDIOCD_SOURCE (source));
 	rb_audiocd_load_metadata (RB_AUDIOCD_SOURCE (source), db);
 	g_object_unref (db);
+#endif
 }
 
+#ifdef HAVE_SJ_METADATA_GETTER
 /*
  * Called by the Multiple Album dialog when the user hits return in
  * the list view



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