flac: workaround for type inconsistency between new/old read callback
size_t (1.1.3) makes a lot more sense, but older flac used unsigned here... git-svn-id: https://svn.musicpd.org/mpd/trunk@5258 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
d41de57bfe
commit
2c01b285c1
@ -51,6 +51,7 @@
|
||||
|
||||
# define flac_decoder_eof FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM
|
||||
|
||||
typedef unsigned flac_read_status_size_t;
|
||||
# define flac_read_status FLAC__SeekableStreamDecoderReadStatus
|
||||
# define flac_read_status_continue \
|
||||
FLAC__SEEKABLE_STREAM_DECODER_READ_STATUS_OK
|
||||
@ -112,6 +113,7 @@
|
||||
|
||||
# define flac_decoder_eof FLAC__STREAM_DECODER_END_OF_STREAM
|
||||
|
||||
typedef size_t flac_read_status_size_t;
|
||||
# define flac_read_status FLAC__StreamDecoderReadStatus
|
||||
# define flac_read_status_continue \
|
||||
FLAC__STREAM_DECODER_READ_STATUS_CONTINUE
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
static flac_read_status flacRead(const flac_decoder * flacDec,
|
||||
FLAC__byte buf[],
|
||||
unsigned *bytes,
|
||||
flac_read_status_size_t *bytes,
|
||||
void *fdata)
|
||||
{
|
||||
FlacData *data = (FlacData *) fdata;
|
||||
|
Loading…
Reference in New Issue
Block a user