Commit ee2bcbb4 authored by Jonathan Neuschäfer's avatar Jonathan Neuschäfer

decoder/audiofile: fix compiler warnings with libaudiofile 0.3.3

This might break older versions, I didn't test.
parent ae28ba84
...@@ -65,14 +65,14 @@ audiofile_file_read(AFvirtualfile *vfile, void *data, size_t length) ...@@ -65,14 +65,14 @@ audiofile_file_read(AFvirtualfile *vfile, void *data, size_t length)
return nbytes; return nbytes;
} }
static long static AFfileoffset
audiofile_file_length(AFvirtualfile *vfile) audiofile_file_length(AFvirtualfile *vfile)
{ {
struct input_stream *is = (struct input_stream *) vfile->closure; struct input_stream *is = (struct input_stream *) vfile->closure;
return is->size; return is->size;
} }
static long static AFfileoffset
audiofile_file_tell(AFvirtualfile *vfile) audiofile_file_tell(AFvirtualfile *vfile)
{ {
struct input_stream *is = (struct input_stream *) vfile->closure; struct input_stream *is = (struct input_stream *) vfile->closure;
...@@ -87,8 +87,8 @@ audiofile_file_destroy(AFvirtualfile *vfile) ...@@ -87,8 +87,8 @@ audiofile_file_destroy(AFvirtualfile *vfile)
vfile->closure = NULL; vfile->closure = NULL;
} }
static long static AFfileoffset
audiofile_file_seek(AFvirtualfile *vfile, long offset, int is_relative) audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset offset, int is_relative)
{ {
struct input_stream *is = (struct input_stream *) vfile->closure; struct input_stream *is = (struct input_stream *) vfile->closure;
int whence = (is_relative ? SEEK_CUR : SEEK_SET); int whence = (is_relative ? SEEK_CUR : SEEK_SET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment