From ca10ac95ec634d23448c603ca3ec655db7869ac2 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 2 Dec 2003 05:27:32 +0000 Subject: [PATCH] Change ID handling to inode --- src/mp3-scanner.c | 3 +++ src/mp3-scanner.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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);