diff --git a/src/music.c b/src/music.c index 21393fb..73e128a 100644 --- a/src/music.c +++ b/src/music.c @@ -47,10 +47,11 @@ static size_t ovpack_read(void* ptr, size_t size, size_t nmemb, void* datasource } static int ovpack_retneg(void) { return -1; } // Must return -1. +static int ovpack_retzero(void) { return 0; } // Must return 0. ov_callbacks ovcall = { .read_func = ovpack_read, .seek_func = (int(*)(void*, ogg_int64_t, int)) ovpack_retneg, - .close_func = NULL, + .close_func = (int(*)(void*))ovpack_retzero, .tell_func = (long(*)(void*))ovpack_retneg };