Tune down 'short read' errors, closing #207

This commit is contained in:
Ron Pedde 2006-10-24 05:21:04 +00:00
parent 0fa620d4a7
commit 5db53647d5

View File

@ -827,7 +827,7 @@ int scan_mp3_get_mp3fileinfo(char *file, MP3FILE *pmp3) {
if(ferror(infile)) {
DPRINTF(E_LOG,L_SCAN,"Error reading: %s\n",strerror(errno));
} else {
DPRINTF(E_LOG,L_SCAN,"Short file: %s\n",file);
DPRINTF(E_INF,L_SCAN,"Bad mp3 file? (short read): %s\n",file);
}
fclose(infile);
return FALSE;
@ -858,7 +858,7 @@ int scan_mp3_get_mp3fileinfo(char *file, MP3FILE *pmp3) {
fseek(infile,fp_size,SEEK_SET);
DPRINTF(E_DBG,L_SCAN,"Reading in new block at %d\n",(int)fp_size);
if(fread(buffer,1,sizeof(buffer),infile) < sizeof(buffer)) {
DPRINTF(E_LOG,L_SCAN,"Short read: %s\n",file);
DPRINTF(E_INF,L_SCAN,"Bad mp3 file? (Short read): %s\n",file);
fclose(infile);
return TRUE;
}