Fix error messages on init_scan

This commit is contained in:
Ron Pedde 2004-01-04 21:32:04 +00:00
parent f666a32d0a
commit 3cfaf1f44d
1 changed files with 6 additions and 2 deletions

View File

@ -232,11 +232,15 @@ int scan_freetags(MP3FILE *pmp3);
*/
int scan_init(char *path) {
int err;
if(db_is_empty()) {
if(db_start_initial_update())
return -1;
scan_foreground(path);
DPRINTF(ERR_DEBUG,"Scanning for MP3s in %s\n",path);
err=scan_foreground(path);
if(db_end_initial_update())
return -1;
@ -245,7 +249,7 @@ int scan_init(char *path) {
return ENOTSUP;
}
return 0;
return err;
}
/*