aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/audiofile_decoder_plugin.c
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-15 20:52:48 +0100
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-15 20:52:48 +0100
commitee2bcbb41db7eb33fb30d69e650aebf98724958b (patch)
tree883717b6796231900a1289dff3ed8a8a81e558d9 /src/decoder/audiofile_decoder_plugin.c
parentae28ba84d2197c2668062173ebcb2d13796685ad (diff)
downloadmpd-ee2bcbb41db7eb33fb30d69e650aebf98724958b.tar.gz
mpd-ee2bcbb41db7eb33fb30d69e650aebf98724958b.tar.xz
mpd-ee2bcbb41db7eb33fb30d69e650aebf98724958b.zip
decoder/audiofile: fix compiler warnings with libaudiofile 0.3.3
This might break older versions, I didn't test.
Diffstat (limited to '')
-rw-r--r--src/decoder/audiofile_decoder_plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder/audiofile_decoder_plugin.c b/src/decoder/audiofile_decoder_plugin.c
index 7db7c7517..b344795e7 100644
--- a/src/decoder/audiofile_decoder_plugin.c
+++ b/src/decoder/audiofile_decoder_plugin.c
@@ -65,14 +65,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;
@@ -87,8 +87,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);