library: Properly check if a track is in the database
The iterator will be set to db.end(), so we should verify that it IS this value. Signed-off-by: Anna Schumaker <anna@ocarinaproject.net>
This commit is contained in:
parent
0d6dc76eb7
commit
9b417e10aa
|
@ -301,7 +301,7 @@ static bool process_path(unsigned int lib_id, const std :: string &dir,
|
|||
scan.path = path;
|
||||
idle :: schedule (do_scan_path, scan);
|
||||
} else {
|
||||
if (track_db.find(path) != track_db.end()) {
|
||||
if (track_db.find(path) == track_db.end()) {
|
||||
read_tags(lib_id, path);
|
||||
changed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue