mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
Speedup startup rescan
This commit is contained in:
@@ -301,13 +301,14 @@ process_media_file(char *file, time_t mtime, off_t size, int compilation)
|
||||
char *filename;
|
||||
char *ext;
|
||||
time_t stamp;
|
||||
int id;
|
||||
int ret;
|
||||
|
||||
stamp = db_file_stamp_bypath(file);
|
||||
db_file_stamp_bypath(file, &stamp, &id);
|
||||
|
||||
if (stamp >= mtime)
|
||||
{
|
||||
db_file_ping(file);
|
||||
db_file_ping(id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user