opus & vorbis tweaks

This commit is contained in:
philippe44
2019-08-04 21:56:09 -07:00
parent ddf9803bbc
commit 3c025c8454
2 changed files with 16 additions and 6 deletions

View File

@@ -266,9 +266,14 @@ static decode_state vorbis_decode(void) {
} else if (n == 0) {
LOG_INFO("end of stream");
UNLOCK_O_direct;
return DECODE_COMPLETE;
if (stream.state <= DISCONNECT) {
LOG_INFO("partial decode");
UNLOCK_O_direct;
UNLOCK_S;
return DECODE_COMPLETE;
} else {
LOG_INFO("no frame decoded");
}
} else if (n == OV_HOLE) {