diff --git a/src/mp3-scanner.c b/src/mp3-scanner.c index 8196e4ff..827402dd 100644 --- a/src/mp3-scanner.c +++ b/src/mp3-scanner.c @@ -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) && diff --git a/src/mp3-scanner.h b/src/mp3-scanner.h index ee080f17..65768cde 100644 --- a/src/mp3-scanner.h +++ b/src/mp3-scanner.h @@ -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);