Rework process_media_file() and related DB support routines

Avoid pulling all the file info from the DB in process_media_file() as
anything besides the file id and timestamp is not used at all.
This commit is contained in:
Julien BLACHE
2009-06-11 20:44:22 +02:00
parent 0a8c171187
commit 0ad20e5220
3 changed files with 94 additions and 61 deletions

View File

@@ -226,10 +226,13 @@ void
db_file_inc_playcount(int id);
void
db_file_ping(int id);
db_file_ping(char *path);
int
db_file_id_bypath(char *path, int *id);
db_file_id_bypath(char *path);
time_t
db_file_stamp_bypath(char *path);
struct media_file_info *
db_file_fetch_byid(int id);