From b9e64d04720cc114aa405a86332b7cb1321db8c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 15 Feb 2012 20:52:48 +0100 Subject: decoder/audiofile: fix compiler warnings with libaudiofile 0.3.3 This might break older versions, I didn't test. --- src/decoder/audiofile_decoder_plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/decoder/audiofile_decoder_plugin.c b/src/decoder/audiofile_decoder_plugin.c index a8311a3c9..de236a6e2 100644 --- a/src/decoder/audiofile_decoder_plugin.c +++ b/src/decoder/audiofile_decoder_plugin.c @@ -64,14 +64,14 @@ audiofile_file_read(AFvirtualfile *vfile, void *data, size_t length) return nbytes; } -static long +static AFfileoffset audiofile_file_length(AFvirtualfile *vfile) { struct input_stream *is = (struct input_stream *) vfile->closure; return is->size; } -static long +static AFfileoffset audiofile_file_tell(AFvirtualfile *vfile) { struct input_stream *is = (struct input_stream *) vfile->closure; @@ -86,8 +86,8 @@ audiofile_file_destroy(AFvirtualfile *vfile) vfile->closure = NULL; } -static long -audiofile_file_seek(AFvirtualfile *vfile, long offset, int is_relative) +static AFfileoffset +audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset offset, int is_relative) { struct input_stream *is = (struct input_stream *) vfile->closure; int whence = (is_relative ? SEEK_CUR : SEEK_SET); -- cgit v1.2.3