diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2013-09-29 19:55:42 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2013-09-29 19:55:42 +0300 |
commit | 32dd9bcbf9209a5a56a4c7f3dbf6958293e7a021 (patch) | |
tree | 69a5689ee5a628287ee92a6c2de5e30b6cad8b57 /src | |
parent | be87f770276de196fae41c4dfa86a39d9e42c2b7 (diff) | |
download | xine-lib-32dd9bcbf9209a5a56a4c7f3dbf6958293e7a021.tar.gz xine-lib-32dd9bcbf9209a5a56a4c7f3dbf6958293e7a021.tar.bz2 |
Fix mpc_reader_read()
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_dec/xine_musepack_decoder.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audio_dec/xine_musepack_decoder.c b/src/audio_dec/xine_musepack_decoder.c index f4613df79..b47e8c22a 100644 --- a/src/audio_dec/xine_musepack_decoder.c +++ b/src/audio_dec/xine_musepack_decoder.c @@ -102,8 +102,13 @@ typedef struct mpc_decoder_s { *************************************************************************/ /* Reads size bytes of data into buffer at ptr. */ +#ifndef HAVE_MPC_MPCDEC_H static int32_t mpc_reader_read(void *const data, void *const ptr, int size) { mpc_decoder_t *const this = (mpc_decoder_t *) data; +#else +static int32_t mpc_reader_read(mpc_reader *data, void *ptr, int32_t size) { + mpc_decoder_t *const this = (mpc_decoder_t *) data->data; +#endif lprintf("mpc_reader_read: size=%d\n", size); |