Mercurial > hg > svcore
diff data/fileio/MP3FileReader.cpp @ 405:65311fb86166
* Merge rev 1048 (build fixes) from rdf-import branch
author | Chris Cannam |
---|---|
date | Tue, 29 Apr 2008 09:44:44 +0000 |
parents | be49bf95d4a5 |
children | b71116d3c180 |
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp Tue Apr 29 09:42:18 2008 +0000 +++ b/data/fileio/MP3FileReader.cpp Tue Apr 29 09:44:44 2008 +0000 @@ -27,6 +27,8 @@ #include <iostream> +#include <cstdlib> + #ifdef HAVE_ID3TAG #include <id3tag.h> #endif @@ -421,9 +423,9 @@ { DecoderData *data = (DecoderData *)dp; - fprintf(stderr, "decoding error 0x%04x (%s) at byte offset %u\n", + fprintf(stderr, "decoding error 0x%04x (%s) at byte offset %lu\n", stream->error, mad_stream_errorstr(stream), - stream->this_frame - data->start); + (unsigned long)(stream->this_frame - data->start)); return MAD_FLOW_CONTINUE; }