Skip to content

Commit 31131a9

Browse files
committed
CodecVorbis: rc 0 -> no error
1 parent 456d99f commit 31131a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AudioTools/AudioCodecs/CodecVorbis.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class VorbisDecoder : public StreamingDecoder {
107107
delay(1);
108108
return true;
109109
} else {
110-
if (result==-3){
110+
if (result==0 || result==-3){
111111
// data interruption
112112
LOGD("copy: %ld - %s", result, readError(result));
113113
} else {
@@ -178,6 +178,9 @@ class VorbisDecoder : public StreamingDecoder {
178178
}
179179

180180
const char* readError(long error){
181+
if (error>=0){
182+
return "OK";
183+
}
181184
switch(error){
182185
case OV_HOLE:
183186
return "Interruption in the data";

0 commit comments

Comments
 (0)