From 565ebcc20c9984c412bd78f1e49681b0e3bbd846 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 23 Feb 2013 00:53:40 +0000 Subject: [PATCH] [Fix] Revisited the libvorbis fix. We wish to return 0 on close. --- src/music.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 };