Merge pull request #323 from chme/db

Remove unnecessary query in filescanner_process_media
This commit is contained in:
ejurgensen 2016-12-18 11:18:23 +01:00 committed by GitHub
commit 70f3465dfe
2 changed files with 2 additions and 1 deletions

View File

@ -2312,6 +2312,7 @@ db_file_stamp_bypath(char *path, time_t *stamp, int *id)
sqlite3_stmt *stmt;
int ret;
*id = 0;
*stamp = 0;
query = sqlite3_mprintf(Q_TMPL, path);

View File

@ -626,7 +626,7 @@ filescanner_process_media(char *path, time_t mtime, off_t size, int type, struct
mfi = external_mfi;
if (stamp)
mfi->id = db_file_id_bypath(path);
mfi->id = id;
mfi->fname = strdup(filename);
if (!mfi->fname)