From bd22a8f91f09efa3f57ef60955d62603f0d35838 Mon Sep 17 00:00:00 2001 From: gimli Date: Fri, 5 Oct 2012 06:37:44 +0200 Subject: [PATCH] fixed compile after 91d656a9981e5bd0f6af584d72c507feebab1593 cdrip is not available when optical drive is disabled (--disable-optical-drive). --- xbmc/music/windows/GUIWindowMusicSongs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbmc/music/windows/GUIWindowMusicSongs.cpp b/xbmc/music/windows/GUIWindowMusicSongs.cpp index 5c70a23cbbf0c..014eb66d2d933 100644 --- a/xbmc/music/windows/GUIWindowMusicSongs.cpp +++ b/xbmc/music/windows/GUIWindowMusicSongs.cpp @@ -411,9 +411,11 @@ bool CGUIWindowMusicSongs::OnContextButton(int itemNumber, CONTEXT_BUTTON button OnRipCD(); return true; +#ifdef HAS_CDDA_RIPPER case CONTEXT_BUTTON_CANCEL_RIP_CD: CCDDARipper::GetInstance().CancelJobs(); return true; +#endif case CONTEXT_BUTTON_CDDB: if (m_musicdatabase.LookupCDDBInfo(true))