Skip to content

Commit

Permalink
rpcsx-os: alsa: avoid recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 4, 2024
1 parent ff29765 commit 20d7779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcsx-os/audio/AlsaDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ long AlsaDevice::write(void *buf, long len) {
snd_pcm_sframes_t r = snd_pcm_writei(mPCMHandle, buf, frames);
if (r == -EPIPE) {
if (fixXRun() == 0) {
return write(buf, len);
continue;
}

continue;
}

if (r == -ESTRPIPE) {
if (resume() == 0) {
return write(buf, len);
continue;
}

continue;
Expand Down

0 comments on commit 20d7779

Please sign in to comment.