Skip to content

Commit

Permalink
Fix AuCheckStreamDataNeeded function
Browse files Browse the repository at this point in the history
fix #13633
  • Loading branch information
sum2012 committed Nov 8, 2020
1 parent 3e6d121 commit 942ce77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/HW/SimpleAudioDec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ u32 AuCtx::AuSetLoopNum(int loop)
// return 1 to read more data stream, 0 don't read
int AuCtx::AuCheckStreamDataNeeded() {
// If we would ask for bytes, then some are needed.
if (AuStreamBytesNeeded() != 0) {
if (AuStreamBytesNeeded() > 0) {
return 1;
}
return 0;
Expand Down

0 comments on commit 942ce77

Please sign in to comment.