Make event logs register correctly, turn down the select error on windows rendezvous, and fix crash on short mp3 files.

This commit is contained in:
Ron Pedde 2006-06-08 10:10:23 +00:00
parent 30ddac3253
commit a1c2a47f2b
3 changed files with 3 additions and 3 deletions

View File

@ -110,6 +110,7 @@ void os_deinit(void) {
* open the syslog (eventlog)
*/
int os_opensyslog(void) {
elog_register();
return elog_init();
}

View File

@ -93,7 +93,7 @@ void *rend_mainthread(void *arg) {
// myTimerCallBack();
} else {
DPRINTF(E_LOG,L_REND,"select() returned %d errno %d %s\n", result, errno, strerror(errno));
DPRINTF(E_INF,L_REND,"select() returned %d errno %d %s\n", result, errno, strerror(errno));
if (errno != EINTR) rend_stop_flag = 1;
}
}

View File

@ -978,8 +978,7 @@ int scan_mp3_get_mp3fileinfo(char *file, MP3FILE *pmp3) {
/* back-calculate bitrate from duration */
if(pmp3->song_length) { /* could still be unknown */
pmp3->bitrate = ((file_size / 1000) * 8) /
(pmp3->song_length / 1000);
pmp3->bitrate = (file_size / pmp3->song_length) * 8;
}
}