win32 cleanups

This commit is contained in:
Ron Pedde 2006-05-31 08:33:23 +00:00
parent 8a6b2ee00a
commit f0434c8c8f
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ int scan_get_flacinfo(char *filename, MP3FILE *pmp3) {
} }
if (block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) { if (block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
for (i = 0; i < block->data.vorbis_comment.num_comments; i++) { for (i = 0; i < (int)block->data.vorbis_comment.num_comments; i++) {
if ((val = GET_VORBIS_COMMENT(block->data.vorbis_comment.comments[i], if ((val = GET_VORBIS_COMMENT(block->data.vorbis_comment.comments[i],
"ARTIST", &len))) { "ARTIST", &len))) {
if ((pmp3->artist = calloc(len + 1, 1)) != NULL) if ((pmp3->artist = calloc(len + 1, 1)) != NULL)

View File

@ -66,7 +66,7 @@ int scan_get_ogginfo(char *filename, MP3FILE *pmp3) {
pmp3->samplerate=vi->rate; pmp3->samplerate=vi->rate;
} }
pmp3->song_length=ov_time_total(&vf,-1) * 1000; pmp3->song_length=(int)ov_time_total(&vf,-1) * 1000;
comment = ov_comment(&vf, -1); comment = ov_comment(&vf, -1);
if (comment != NULL) { if (comment != NULL) {