diff --git a/src/music.c b/src/music.c index 260bbce..21393fb 100644 --- a/src/music.c +++ b/src/music.c @@ -46,11 +46,12 @@ static size_t ovpack_read(void* ptr, size_t size, size_t nmemb, void* datasource return (ssize_t) pack_read(datasource, ptr, size*nmemb); } +static int ovpack_retneg(void) { return -1; } // Must return -1. ov_callbacks ovcall = { .read_func = ovpack_read, - .seek_func = NULL, + .seek_func = (int(*)(void*, ogg_int64_t, int)) ovpack_retneg, .close_func = NULL, - .tell_func = NULL + .tell_func = (long(*)(void*))ovpack_retneg }; static int stream_loadBuffer(ALuint buffer);