Skip to content

Commit

Permalink
Merge pull request #13638 from sum2012/AuCtx_minor
Browse files Browse the repository at this point in the history
Fix AuCheckStreamDataNeeded function
  • Loading branch information
hrydgard authored Nov 8, 2020
2 parents ee46629 + 942ce77 commit 0193fd2
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 0193fd2

Please sign in to comment.