[Fix] Revisited the libvorbis fix. We wish to return 0 on close.

This commit is contained in:
Allanis 2013-02-23 00:53:40 +00:00
parent 351ff76858
commit 565ebcc20c

View File

@ -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
};