From d000d31355c824a076324b647a3f056aab9ddabe Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Dec 2009 23:05:15 +0100 Subject: encoder/flac: fix write callback prototype for libFLAC 1.1.2 --- src/encoder/flac_encoder.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/encoder/flac_encoder.c b/src/encoder/flac_encoder.c index 00b59761b..395af5788 100644 --- a/src/encoder/flac_encoder.c +++ b/src/encoder/flac_encoder.c @@ -129,7 +129,13 @@ flac_encoder_setup(struct flac_encoder *encoder, unsigned bits_per_sample, static FLAC__StreamEncoderWriteStatus flac_write_callback(G_GNUC_UNUSED const FLAC__StreamEncoder *fse, - const FLAC__byte data[], size_t bytes, G_GNUC_UNUSED unsigned samples, + const FLAC__byte data[], +#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7 + unsigned bytes, +#else + size_t bytes, +#endif + G_GNUC_UNUSED unsigned samples, G_GNUC_UNUSED unsigned current_frame, void *client_data) { struct flac_encoder *encoder = (struct flac_encoder *) client_data; -- cgit v1.2.3