[musicdb] scan optimization - skip the scan if we don't find any music in the dir
authornight199uk <night199uk@xbmc.org>
Tue, 19 Nov 2013 15:39:21 +0000 (23:39 +0800)
committerJonathan Marshall <jmarshall@xbmc.org>
Tue, 24 Dec 2013 00:48:58 +0000 (13:48 +1300)
xbmc/music/infoscanner/MusicInfoScanner.cpp

index 098c779..9ca5798 100644 (file)
@@ -690,7 +690,7 @@ int CMusicInfoScanner::RetrieveMusicInfo(const CStdString& strDirectory, CFileIt
     m_needsCleanup = true;
 
   CFileItemList scannedItems;
-  if (ScanTags(items, scannedItems) == INFO_CANCELLED)
+  if (ScanTags(items, scannedItems) == INFO_CANCELLED || scannedItems.Size() == 0)
     return 0;
 
   VECALBUMS albums;