[Fix] Potential bug with a libvorbis segfault.

This commit is contained in:
Allanis 2013-02-23 00:43:32 +00:00
parent d384cb201b
commit 351ff76858

View File

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