aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/oss.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-30 21:38:42 -0800
committerChris Robinson <[email protected]>2018-12-30 21:38:42 -0800
commit9f5c9a2260849240bd680b8fdf533acdef7f9de1 (patch)
treed7e1c5873e323e7edcd96c1a2a037ea18063501c /Alc/backends/oss.cpp
parent3df1d185f8bcf8d470249594a15d0e781a705ca2 (diff)
Rename BackendLock to StateLock
Diffstat (limited to 'Alc/backends/oss.cpp')
-rw-r--r--Alc/backends/oss.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Alc/backends/oss.cpp b/Alc/backends/oss.cpp
index c18a1d86..b5640ae3 100644
--- a/Alc/backends/oss.cpp
+++ b/Alc/backends/oss.cpp
@@ -520,9 +520,7 @@ int OSScapture::recordProc()
if(errno == EINTR || errno == EAGAIN)
continue;
ERR("poll failed: %s\n", strerror(errno));
- lock();
aluHandleDisconnect(mDevice, "Failed to check capture samples: %s", strerror(errno));
- unlock();
break;
}
else if(sret == 0)
@@ -538,10 +536,8 @@ int OSScapture::recordProc()
if(amt < 0)
{
ERR("read failed: %s\n", strerror(errno));
- lock();
aluHandleDisconnect(mDevice, "Failed reading capture samples: %s",
strerror(errno));
- unlock();
break;
}
mRing->writeAdvance(amt/frame_size);