Skip to content

Commit 850392f

Browse files
committed
VorbisDecoder: dont call close_func
1 parent 10973ad commit 850392f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/AudioTools/AudioCodecs/CodecVorbis.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class VorbisDecoder : public StreamingDecoder {
4141

4242
callbacks.read_func = read_func;
4343
callbacks.seek_func = seek_func;
44-
callbacks.close_func = close_func;
44+
callbacks.close_func = nullptr;
4545
callbacks.tell_func = tell_func;
4646

4747
if (p_input->available()>=VORBIS_HEADER_OPEN_LIMIT){
@@ -171,11 +171,11 @@ class VorbisDecoder : public StreamingDecoder {
171171
return -1;
172172
}
173173

174-
static int close_func(void *datasource) {
175-
VorbisDecoder *self = (VorbisDecoder *)datasource;
176-
self->end();
177-
return 0;
178-
}
174+
// static int close_func(void *datasource) {
175+
// VorbisDecoder *self = (VorbisDecoder *)datasource;
176+
// self->end();
177+
// return 0;
178+
// }
179179

180180
const char* readError(long error){
181181
if (error>=0){

0 commit comments

Comments
 (0)