[Fix] Revisited the libvorbis fix. We wish to return 0 on close.
This commit is contained in:
parent
351ff76858
commit
565ebcc20c
@ -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_retneg(void) { return -1; } // Must return -1.
|
||||||
|
static int ovpack_retzero(void) { return 0; } // Must return 0.
|
||||||
ov_callbacks ovcall = {
|
ov_callbacks ovcall = {
|
||||||
.read_func = ovpack_read,
|
.read_func = ovpack_read,
|
||||||
.seek_func = (int(*)(void*, ogg_int64_t, int)) ovpack_retneg,
|
.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
|
.tell_func = (long(*)(void*))ovpack_retneg
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user