mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-30 15:11:25 -04:00
Change ID handling to inode
This commit is contained in:
parent
a330728274
commit
ca10ac95ec
@ -301,6 +301,9 @@ int scan_foreground(char *path) {
|
|||||||
mp3file.path=mp3_path;
|
mp3file.path=mp3_path;
|
||||||
mp3file.fname=de.d_name;
|
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 */
|
/* Do the tag lookup here */
|
||||||
if(!scan_gettags(mp3file.path,&mp3file) &&
|
if(!scan_gettags(mp3file.path,&mp3file) &&
|
||||||
!scan_getfileinfo(mp3file.path,&mp3file)) {
|
!scan_getfileinfo(mp3file.path,&mp3file)) {
|
||||||
|
@ -37,7 +37,7 @@ typedef struct tag_mp3file {
|
|||||||
int file_size;
|
int file_size;
|
||||||
|
|
||||||
int got_id3;
|
int got_id3;
|
||||||
int id;
|
unsigned int id;
|
||||||
} MP3FILE;
|
} MP3FILE;
|
||||||
|
|
||||||
extern int scan_init(char *path);
|
extern int scan_init(char *path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user