Change ID handling to inode

This commit is contained in:
Ron Pedde 2003-12-02 05:27:32 +00:00
parent a330728274
commit ca10ac95ec
2 changed files with 4 additions and 1 deletions

View File

@ -300,6 +300,9 @@ int scan_foreground(char *path) {
memset((void*)&mp3file,0,sizeof(mp3file));
mp3file.path=mp3_path;
mp3file.fname=de.d_name;
/* FIXME; assumes that st_ino is a u_int_32 */
mp3file.id=sb.st_ino;
/* Do the tag lookup here */
if(!scan_gettags(mp3file.path,&mp3file) &&

View File

@ -37,7 +37,7 @@ typedef struct tag_mp3file {
int file_size;
int got_id3;
int id;
unsigned int id;
} MP3FILE;
extern int scan_init(char *path);