aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-15 23:05:15 +0100
committerMax Kellermann <max@duempel.org>2009-12-15 23:12:06 +0100
commitd000d31355c824a076324b647a3f056aab9ddabe (patch)
tree727cc360edd22fad84d63ad15a5592b676019626 /src/encoder
parent971c9671f6f41d0d0f7bf291477a64e7cee74998 (diff)
downloadmpd-d000d31355c824a076324b647a3f056aab9ddabe.tar.gz
mpd-d000d31355c824a076324b647a3f056aab9ddabe.tar.xz
mpd-d000d31355c824a076324b647a3f056aab9ddabe.zip
encoder/flac: fix write callback prototype for libFLAC 1.1.2
Diffstat (limited to '')
-rw-r--r--src/encoder/flac_encoder.c8
1 files changed, 7 insertions, 1 deletions
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;