Simplify conditional logic
This commit is contained in:
parent
0227fae934
commit
51284a6d42
1 changed files with 4 additions and 2 deletions
|
@ -294,9 +294,11 @@ static uint32_t opus_read(Sound_Sample * sample, void * buffer, uint32_t request
|
|||
if (result == 0) {
|
||||
sample->flags |= SOUND_SAMPLEFLAG_EOF;
|
||||
break;
|
||||
} else if (result == OP_HOLE) {
|
||||
}
|
||||
if (result == OP_HOLE)
|
||||
continue; // hole in the data; keeping going!
|
||||
} else if (result < 0) {
|
||||
|
||||
if (result < 0) {
|
||||
sample->flags |= SOUND_SAMPLEFLAG_ERROR;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue