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:
Anna Schumaker 2014-04-08 08:07:32 -04:00 committed by Anna Schumaker
parent 0d6dc76eb7
commit 9b417e10aa
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}