fixes from compiling code and running all the tests on NT

This commit is contained in:
Josh Coalson
2002-06-11 06:15:28 +00:00
parent a6a773b3ae
commit d57c8d31e3
12 changed files with 88 additions and 54 deletions

View File

@@ -258,12 +258,12 @@ public:
void StreamDecoder::metadata_callback(const ::FLAC__StreamMetadata *metadata)
{
return common_metadata_callback_(metadata);
common_metadata_callback_(metadata);
}
void StreamDecoder::error_callback(::FLAC__StreamDecoderErrorStatus status)
{
return common_error_callback_(status);
common_error_callback_(status);
}
bool StreamDecoder::die(const char *msg) const
@@ -830,7 +830,7 @@ public:
if(error_occurred_)
return ::FLAC__SEEKABLE_STREAM_DECODER_SEEK_STATUS_ERROR;
if(::fseek(file_, absolute_byte_offset, SEEK_SET) < 0) {
if(::fseek(file_, (long)absolute_byte_offset, SEEK_SET) < 0) {
error_occurred_ = true;
return ::FLAC__SEEKABLE_STREAM_DECODER_SEEK_STATUS_ERROR;
}
@@ -868,7 +868,7 @@ bool SeekableStreamDecoder::eof_callback()
if(error_occurred_)
return true;
return feof(file_);
return (bool)feof(file_);
}
::FLAC__StreamDecoderWriteStatus SeekableStreamDecoder::write_callback(const ::FLAC__Frame *frame, const FLAC__int32 * const buffer[])